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
[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
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.
--
[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
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
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
--