Setting boolean COM properties
Erik Max Francis
max at alcyone.com
Tue Feb 13 02:36:17 EST 2001
Mark Hammond wrote:
> Due to a quirk in Python, these variables will then look like ints,
> but
> are really the PyTrue and PyFalse objects, as shown here:
Which brings up a fairly obvious question: Especially given that there
are hidden true and false objects in the Python core, how come there
isn't a distinct Boolean type in Python, with values true and false?
There's nothing on this in the FAQ.
This is one of the few things I really wish was in Python, for
cleanliness sake.
--
Erik Max Francis / max at alcyone.com / http://www.alcyone.com/max/
__ San Jose, CA, US / 37 20 N 121 53 W / ICQ16063900 / &tSftDotIotE
/ \ There are no dull subjects. There are only dull writers.
\__/ H.L. Mencken
Alcyone Systems / http://www.alcyone.com/
Alcyone Systems, San Jose, California.
More information about the Python-list
mailing list