About True and wxTrue.
1) wx should be a Python package for Python. wx should not be a "scripting language" that
extends Python. The more pythonic is your code, the better it is.
2) It is true - ;
- that the True / False boolean values are new in Python.
Try this:
True
True
False
False
True = False
True == True
True
True == False
True
The only way to reset the True value is by doing something like this
True = 5 > 3
It's not a bug, it is a design mistake. I wanted once to inform the Python
stuff about this. Unfortunatelly, you have to be registrated to their mail list,
so I did not do it.
I somebody can do it...
Jean-Michel Fauth, Switzerland
Ah, once again raising the eternal question
“What is Truth?”. Apparently in Python, it’s anything you
please (but with a reasonable default).
I do believe that this is perhaps not a design
error, but a well-considered feature – providing a language implementation
in conformance with the underlying “Monty Python” philosophy.

···
Gary H. Merrill
Director and Principal Scientist, New Applications
Data Exploration Sciences
GlaxoSmithKline Inc.
(919) 483-8456
“Jean-Michel Fauth”
jmfauth@bluewin.ch
27-Aug-2004 01:39
Please respond to wxPython-users@lists.wxwidgets.org
To
wxPython-users@lists.wxwidgets.org
cc
Subject
Re: [wxPython-users] namespace
question
`About True and wxTrue.
- wx should be a Python package for Python. wx should not be a “scripting
language” that
extends Python. The more pythonic is your code, the better it is.
- It is true - ;
- that the True / False boolean values are new in Python.
Try this:
True
True
False
False
True = False
True == True
True
True == False
True
The only way to reset the True value is by doing something like this
True = 5 > 3
It’s not a bug, it is a design mistake. I wanted once to inform the Python
stuff about this. Unfortunatelly, you have to be registrated to their mail
list,
so I did not do it.
I somebody can do it…
Jean-Michel Fauth, Switzerland
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
`