[Python-Dev] Re: PEP 285: Adding a bool type (original) (raw)

Andrew Koenig ark@research.att.com
Wed, 3 Apr 2002 11:19:33 -0500 (EST)


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.

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

I mean that the language doesn't prefer a single way, as opposed to programmers' conventions.