A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-November/029880.html below:

[Python-Dev] metaclass insanity

[Python-Dev] metaclass insanity [Python-Dev] metaclass insanityThomas Heller thomas.heller@ion-tof.com
04 Nov 2002 22:10:42 +0100
Guido van Rossum <guido@python.org> writes:

> Can someone provide a reason why you'd want to use nested classes?
> I've never felt this need myself.  What are the motivations?
> 

Nested classes provide a nice way (IMO) to write metaclasses and keep
them near the classes using them:

class X(object):
    class __metaclass__(type):
        ....

Thomas




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4