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

fab at fab at
Mon Oct 18 17:38:09 CEST 2010

Christian Heimes <lists at> 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