Classes in a class: how to access variables from one in another

fab at slick.airforce-one.org fab at slick.airforce-one.org
Mon Oct 18 17:38:09 CEST 2010


Christian Heimes <lists at cheimes.de> wrote:
> Don't nest classes. Just don't. This might be a valid and good approach
> in some programming languages but it's not Pythonic. Your code can
> easily be implemented without nested classes.

I think you're right. It would have been more aesthetically pleasant
to me (a Handle has only sense on a drawing zone), but if it's more
complicated I'll avoid nested classes.

-- 
F. Delente



More information about the Python-list mailing list