jython: True and False boolean literals?

2005-12-22 Thread davidmichaelkarr
Aren't there boolean literals for True and False in Python (jython)? I can't get true, True, false, or False to work. I ended up having to use (1==1) and (1==0). -- http://mail.python.org/mailman/listinfo/python-list

Re: jython: True and False boolean literals?

2005-12-22 Thread keirr
[EMAIL PROTECTED] wrote: Aren't there boolean literals for True and False in Python True != False True type(True) type 'bool' works for most people :-) All the best, Keir -- http://mail.python.org/mailman/listinfo/python-list

Re: jython: True and False boolean literals?

2005-12-22 Thread keirr
keirr wrote: [EMAIL PROTECTED] 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. --

Re: jython: True and False boolean literals?

2005-12-22 Thread Kent Johnson
[EMAIL PROTECTED] wrote: Aren't there boolean literals for True and False in Python (jython)? I can't get true, True, false, or False to work. I ended up having to use (1==1) and (1==0). No, there are not. Jython implements Python 2.1 which did not have boolean literals. You can just use 1

Re: jython: True and False boolean literals?

2005-12-22 Thread keirr
Kent Johnson wrote: [EMAIL PROTECTED] wrote: Aren't there boolean literals for True and False in Python (jython)? I can't get true, True, false, or False to work. I ended up having to use (1==1) and (1==0). No, there are not. Jython implements Python 2.1 which did not have boolean

Re: jython: True and False boolean literals?

2005-12-22 Thread Bengt Richter
On 22 Dec 2005 10:51:22 -0800, [EMAIL PROTECTED] wrote: Aren't there boolean literals for True and False in Python (jython)? I can't get true, True, false, or False to work. I ended up having to use (1==1) and (1==0). You may want to upgrade to a newer version. Regards, Bengt Richter --