PEP 285: Adding a bool type

Max M maxm at mxm.dk
Fri Apr 5 02:06:00 EST 2002


Alex Martelli wrote:


> When this PEP passes and 2.3 becomes the only Python
> release that my code must support I may have to switch to
> "return True" vs "return 1"


Oh stop whining!

Just do a search and replace in your codebase::

     s/1/True/gi

That should solve all those problems in a few seconds.

regards Max M




More information about the Python-list mailing list