jython: True and False boolean literals?

keirr keir.robinson at gmail.com
Thu Dec 22 14:11:44 EST 2005


keirr wrote:
> davidmichaelkarr at gmail.com wrote:
> > Aren't there boolean literals for "True" and "False" in Python
>
> >>> True != False
> True
> >>> type(True)
> <type 'bool'>
>
> works for most people :-)
>
Ahem, who use python. For jython this looks like
>>> True != False
1
>>> type(True)
<type 'int'>

Keir.




More information about the Python-list mailing list