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
()``. 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
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)
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
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.
--
http
[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
--
http
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
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
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
101 - 113 of 113 matches
Mail list logo