Class mutation

Thomas Heller thomas.heller at ion-tof.com
Thu Sep 27 08:23:02 EDT 2001


"Roman Suzi" <rnd at onego.ru> wrote in message news:mailman.1001591669.4655.python-list at python.org...
> On Thu, 27 Sep 2001, Thomas Heller wrote:
>
> > job.__class__ = ActiveJob
>
> This trick will most probably be no longer available in
> Python >= 2.2

>From pep253 I have the opposite impression:

Assignment to __class__ continues to work for classic classes,
and is planned (but not yet implemented) also for new-style
types.

Thomas





More information about the Python-list mailing list