f...@slick.airforce-one.org wrote:
Christian Heimes <li...@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.

I would disagree to the point. Nested classes are perfectly fine, class can but used as class and/or namespaces. However Nested classes are rarely absolutely required so if you decide not to use them, that's not a big deal.

JM
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to