[Tutor] methods and functions

Magnus Lyckå magnus@thinkware.se
Fri Jun 13 14:47:02 2003


At 20:40 2003-06-13 +0200, Magnus Lyckå wrote:
>When python reaches the code:
>
>class X:
>     ...
>
>it creates a *class* object, and calls it X.

This was a sloppy thing to say. I meant that it
creates a class object, *and* defines a name X in
the current namespace, and binds the name X to
the newly created class object.


--
Magnus Lycka (It's really Lyckå), magnus@thinkware.se
Thinkware AB, Sweden, www.thinkware.se
I code Python ~ The Agile Programming Language