[Python-Dev] For review: PEP 285: Adding a bool type

Andrew Kuchling akuchlin@mems-exchange.org
Fri, 8 Mar 2002 13:16:28 -0500


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