[Python-Dev] Sneaky 'super' instances

Phillip J. Eby pje@telecommunity.com
Wed, 11 Jun 2003 11:35:01 -0400


At 11:13 AM 6/11/03 -0400, Guido van Rossum wrote:
> > >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.

Of course.  There is a developer who sits a couple of cubicles down from me 
who finds Perl more readable than Python.  :)  I was only commenting on 
*my* use for the idiom, which you once described as "a good use of nested 
namespaces".

I suppose I could start qualifying all my statements with "to me" and "from 
my perspective", but I struggle to keep my verbosity in check as it is.  :)