python improvements (Was: Re: New Language)

Fredrik Lundh effbot at telia.com
Wed May 17 09:52:16 EDT 2000


Mikael Olofsson wrote:
> I thought that Emile pointed out a bug, but you obviously seem to 
> understand what's going on. Could you share your insight?

Each instance has a __class__ attribute, which points to
the class object.  In Python 1.5 and later, that attribute
can be changed on the fly.

also see:
http://www.python.org/doc/current/lib/specialattrs.html

</F>




More information about the Python-list mailing list