[Python-Dev] Python-dev Summary for 2002-09-16 to 2002-09-30

Samuele Pedroni pedronis@bluewin.ch
Tue, 1 Oct 2002 13:48:44 +0200


> =================================================
> `builtins instance have modifiable __class__?`__
> =================================================
> __ http://mail.python.org/pipermail/python-dev/2002-September/028978.html
>
> Samuele Pedroni asked if being able to directly assigning to __class__ was
> allowed.  Guido said "In 2.3, it's disallowed".  It is highly discouraged
> in 2.2.2 but  still doable.
>

my question and the limitation refer only to builtin types (int,dict ...), for
instances of (user-defined) subtypes __class__ will be still modifiable.

regards.