name capitalization of built-in types, True, and False

2007-05-11 Thread cbtube03
I see that naming conventions are such that classes usually get named CamelCase. So why are the built-in types named all lowercase (like list, dict, set, bool, etc.)? And names for instances of classes are usually written in lowercase, like foo in ``foo = CamelCase()``. So why are True and False

Re: name capitalization of built-in types, True, and False

2007-05-11 Thread James Stroud
()``. So why are True and False (instances of bool) capitalized? Shouldn't they be true and false? Same goes for None. My guess is that TRUE, FALSE, and NONE are fairly unbecoming and all lowercase would not do justice to their status as language constants. -- http://mail.python.org/mailman

BOOST confuses me: a few assumptions: true or false.....

2007-01-01 Thread Osiris
I read a lot of the html pages on installing boost etc. Still a lot of confusion. Here is what I want: I have old, stable wonderful C-code I want to use in Python projects. So I encapsulate the C-code in some C++ stuf and try to compile it into a DLL. 1: I DL-ed boost_1_33_1.exe (I use WinXP)

How about assignment to True and False...

2006-09-23 Thread Nick Vatamaniuc
Perhaps it will be addressed in 3.0... I hope True and False could become keywords eventually. That would stop silliness like: - In [1]: False=True In [2]: not False Out[2]: False In [3]: False Out[3]: True - Nick V. John Roth wrote: Saizan wrote

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

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 -- http

Silly questions about True and False

2004-12-20 Thread drs
I just upgraded my Python install, and for the first time have True and False rather than 1 and 0. I was playing around at the command line to test how they work (for instance, if 9: and if True: both lead to the conditional being executed, but True == 9 - False, that this would be true

Re: Silly questions about True and False

2004-12-20 Thread Steve Holden
Peter Hansen wrote: drs wrote: I just upgraded my Python install, and for the first time have True and False rather than 1 and 0. I was playing around at the command line to test how they work (for instance, if 9: and if True: both lead to the conditional being executed, but True == 9 - False

Re: Silly questions about True and False

2004-12-20 Thread Steven Bethard
drs wrote: I just upgraded my Python install, and for the first time have True and False rather than 1 and 0. I was playing around at the command line to test how they work (for instance, if 9: and if True: both lead to the conditional being executed, but True == 9 - False, that this would

<    1   2