[Python-Dev] Sneaky 'super' instances

Guido van Rossum guido@python.org
Wed, 11 Jun 2003 11:13:08 -0400


> >Well, nested classes aren't exactly a recommended idiom in Python...
> 
> The only thing I ever use them for is for defining a descriptor that
> goes inside that class (and isn't used by other classes).  It reads
> much more naturally than defining the descriptors outside the class,
> and then putting them in.

Whether or not that reads more naturally depends on other factors,
like who is reading the code.

--Guido van Rossum (home page: http://www.python.org/~guido/)