A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2002-March/020867.html below:

[Python-Dev] For review: PEP 285: Adding a bool type

[Python-Dev] For review: PEP 285: Adding a bool type [Python-Dev] For review: PEP 285: Adding a bool typeSamuele Pedroni pedroni@inf.ethz.ch
Sun, 10 Mar 2002 13:31:31 +0100
[GvR]
> I've spent an evening hacking.  There's now an experimental
> implementation of the PEP on SourceForge:
>
>
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=528022&group_id=547
0
>
> It including a unittest file, test_bool.py, which checks the promises
> made in the PEP, and a little bit of documentation.  (Unfortunately,
> because much about new-style classes in 2.2 is not yet documented,
> documenting bool as a subclass of int sticks out like a sore
> thumb. :-)
>

(This is a serious question) How do you imagine bool
presented to (non-programmer) newbies.

Not presented. Presented disjunct from int at the beginning.
Using the notion of subtyping/subclassing.
Operationally:
     True == 1
     False == 0
     etc .

Thanks. Samuele Pedroni.




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