From: Andrew Kuchling <akuchlin@mems-exchange.org>
Replying To: Hans Nowak <wurmy@earthlink.net>
Date: Fri, 8 Mar 2002 13:16:28 -0500
Subject: Re: [Python-Dev] For review: PEP 285: Adding a bool type

On Fri, Mar 08, 2002 at 01:12:25PM -0500, Hans Nowak wrote:
>I'm not sure if there's a lot of code out there that actually uses these 
>numerical values. I occasionally use it, though... I guess that's what I get 
>for bad programming practices. :-)

Hmm... I wonder if this related idiom is common? 

print ["false",  "true"][boolvalue]

--amk
 
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev