nested classes
Greg Ewing
see at my.signature
Wed Jun 20 00:12:45 EDT 2001
Skip Montanaro wrote:
>
> When defining a class, the code within the class's scope is executed
> immediately, before a class object has been bound to the class's name.
But it *could* be done differently. An empty class
object could be created, bound to the name, and then
methods added to it. This would be analogous to what
is done with modules.
--
Greg Ewing, Computer Science Dept, University of Canterbury,
Christchurch, New Zealand
To get my email address, please visit my web page:
http://www.cosc.canterbury.ac.nz/~greg
More information about the Python-list
mailing list