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/042587.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?Greg Ewing greg at cosc.canterbury.ac.nz
Mon Feb 16 18:38:29 EST 2004
Guido:

> Why is it important *not* to have this property?

Probably not greatly important, it just seems to me that
there ought to be a fairly strong reason for taking the
somewhat drastic step of making something non-subclassable.

> it helps the implementation a bit

Only a tiny bit, surely? Anything which accepts a boolean
has to be prepared to deal with any type of object anyway.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg at cosc.canterbury.ac.nz	   +--------------------------------------+

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