No Boolean type in "types"

Thomas Mangin thomasm at legend.co.uk
Tue Jun 13 08:38:00 EDT 2000


> > Can someone explain me why the module "types" have no boolean type
defined ?

I knew this, sorry I wasn't clear enough,
Considering a "structural" point of view, having true and defined in a
standard way
and being able to "indicate" that the type is Boolean is a nice programming
practice.
In C one will use TRUE and FALSE. Those define are no more than integer too
but help
code readability. That is my point.

If types don't define this every programmer "have the charge" to do it.
Python credo isn't "one way to do it" ??

Thomas





More information about the Python-list mailing list