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/042547.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?François Pinard pinard at iro.umontreal.ca
Thu Feb 12 17:11:13 EST 2004
[Tim Peters]
> See
>     http://mail.python.org/pipermail/python-dev/2002-March/020822.html

Thanks for the reference!

>     [Guido]
>     the mere existance of an instance of a subclass of bool would
>     break the invariant that True and False are the only instances of
>     bool!  (An instance of a subclass of C is also an instance of C.)

This is a convincing argument, and enough a reason.  Thanks!  Now, I
know why Python refuses! :-)

-- 
François Pinard   http://www.iro.umontreal.ca/~pinard

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