What has PEP 285 done to us?

Magnus Lie Hetland mlh at vier.idi.ntnu.no
Wed Apr 10 22:28:57 EDT 2002


In article <3CB32C83.AB67AFFC at alcyone.com>, Erik Max Francis wrote:
>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.

Sure. I was only trying to clarify Laura's description of Something
and Nothing (as I saw it), because I like the description.

Although I think the new bool type was completely unnecessary, it
won't cause great problems for me, and I don't think I'll have any
problems explaining how it works to newbies (though I may have some
problems explaining why it exists).

--
Magnus Lie Hetland                                  The Anygui Project
http://hetland.org                                  http://anygui.org



More information about the Python-list mailing list