true = 1

Skip Montanaro skip at pobox.com
Fri Jan 11 23:25:47 EST 2002


    Mark> I don't know whether this has ever been proposed, but how about
    Mark> built-in "constants" for true and false?

Yup.  There are even Py_True and Py_False objects available at the C level.
For one reason or another (mostly because 1 and 0 work well enough I think),
they've never been exposed to the Python programmer.

-- 
Skip Montanaro (skip at pobox.com - http://www.mojam.com/)




More information about the Python-list mailing list