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

Fredrik Lundh fredrik@pythonware.com
Wed, 3 Apr 2002 18:16:17 +0200


Andrew Koenig wrote:

> Specifically: If I want to write a function that answers a yes/no
> question, I have lots of possible ways of spelling yes (1, 2, "yes",
> and so on) and lots of possible ways of spelling no (0, {}, None,
> and so on).  There isn't a single preferred way.

if you study real python code, you'll find that there is.

</F>