[Python-Dev] Re: PEP 285: Adding a bool type
Fredrik Lundh
fredrik at pythonware.com
Wed Apr 3 11:16:17 EST 2002
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>
More information about the Python-list
mailing list