What has PEP 285 done to us?
Erik Max Francis
max at alcyone.com
Tue Apr 9 14:01:39 EDT 2002
Magnus Lie Hetland wrote:
> That's not how I saw it. The main point I extracted was: Until now,
> the Pythonic "truth values" have been "something" and "nothing" (i.e.
> the empty list, zero, None, etc.) With the bool type this is still
> true, but we get a type which will give newbies the impression that it
> isn't.
So explain it to them. It only takes a sentence or two. The bool type
just provides one more value that's a "nothing," and one more value
that's a "something," for cases where what you're interested in is truly
nothing but a truth functional value.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/ \ Nationalism is an infantile sickness.
\__/ Albert Einstein
Alcyone Systems' Daily Planet / http://www.alcyone.com/planet.html
A new, virtual planet, every day.
More information about the Python-list
mailing list