Can I define nested classes in Python?
Rene Pijlman
reply.in at the.newsgroup
Thu Apr 10 19:17:44 EDT 2003
Terry Reedy:
>sdieselil:
>> Can I define nested classes in Python
>
>Try it and see what happens.
This may have been how Thomas Edison constructed the light bulb,
but this is not the Right Way to learn a programming language.
A better approach is to read the manual.
http://www.python.org/doc/current/ref/nested-scopes.html
Although in this case, I must admit, the manual primarily serves
to steer Python newbies towards a career in light bulb
development :-/
But wait a minute, why would a newbie want to use nested classes
anyway?
--
René Pijlman
More information about the Python-list
mailing list