[Python-Dev] Sneaky 'super' instances

Phillip J. Eby pje@telecommunity.com
2003年6月11日 11:07:48 -0400


At 10:28 AM 6/11/03 -0400, Guido van Rossum wrote:
> > HappyDoc doesn't handle nested classes. (Actually, I'm not sure *any*
> > current Python tool handles nested classes correctly.)
>>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.

AltStyle によって変換されたページ (->オリジナル) /