newbie class question

Diez B. Roggisch deets at nospam.web.de
Wed Nov 23 17:40:20 EST 2005


>>What I am trying to accomplish should be pretty self explanatory when
>>looking at the following:

It seems to me that what you are after is a nested or inner class like 
in JAVA. You can't do that in the same way as in JAVA, as nested classes 
in python don't know about their surrounding class/context.

So, to accomplish what you want, you need e.g. this recipe from aspn:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/231520


Regards,

Diez



More information about the Python-list mailing list