[Python-Dev] Re: PEP 285: Adding a bool type
Erik Max Francis
max at alcyone.com
Thu Apr 4 14:16:28 EST 2002
phil hunt wrote:
> On 03 Apr 2002 10:59:13 -0500, Andrew Koenig <ark at research.att.com>
> 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.
>
> Yes there is, 1 or 0.
No, there isn't. Some return 0 or 1, some return 0 or an unspecified
integer, some return None or an object, etc.
--
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