[Python-Dev] Re: PEP 285: Adding a bool type
phil hunt
philh at comuno.freeserve.co.uk
Wed Apr 3 18:12:31 EST 2002
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.
--
<"><"><"> Philip Hunt <philh at comuno.freeserve.co.uk> <"><"><">
"I would guess that he really believes whatever is politically
advantageous for him to believe."
-- Alison Brooks, referring to Michael
Portillo, on soc.history.what-if
More information about the Python-list
mailing list