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/2004-February/042568.html below:

[Python-Dev] bool does not want to be subclassed?

[Python-Dev] bool does not want to be subclassed? [Python-Dev] bool does not want to be subclassed?"Martin v. Löwis" martin at v.loewis.de
Sat Feb 14 11:22:34 EST 2004
Gerrit wrote:
> Isn't this just modifying A.__dict__, where __getattribute__ looks into
> to see whether something is defined? Or is that the same thing?

Correct. However, to the user, this should be an implementation detail,
and is nearly indistinguishable from

 >>> A.__name__="B"
 >>> A
<class '__main__.B'>

Regards,
Martin


More information about the Python-Dev mailing list

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