A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-October/029030.html below:

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

[Python-Dev] Python-dev Summary for 2002-09-16 to 2002-09-30 [Python-Dev] Python-dev Summary for 2002-09-16 to 2002-09-30Guido van Rossum guido@python.org
Tue, 01 Oct 2002 09:50:18 -0400
> > =================================================
> > `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.

Yes, setting __class__ for instances of user-defined new-style classes
will be allowed (if the new __class__ value is compatible with the old).

--Guido van Rossum (home page: http://www.python.org/~guido/)



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4