PEP 285: Adding a bool type

Tim Peters tim.one at comcast.net
Sat Mar 30 17:25:26 EST 2002


[Robin Becker]
> This pretty much seems unwanted to me. Done purely for political
> correctness. Whenever new keywords are discussed the Gods are against
> them. Now we have to accept new constants true, false + a new type.

True, False and bool aren't proposed to be keywords; they're just new
builtins.  If you currently have code doing

try:
    True
except NameError:
    breathe()

I suppose you'll stop breathing.

but-if-you-have-code-like-that-maybe-it's-for-the-best-ly y'rs  - tim





More information about the Python-list mailing list