Equivalent code to the bool() built-in function

Gregory Ewing greg.ewing at canterbury.ac.nz
Wed Apr 20 01:59:51 CEST 2011


Jean-Paul Calderone wrote:

> Also boolean xor is the same as !=.

Only if you have booleans. Even without short circuiting,
a boolean xor operator could provide the service of
automatically booling things for you (is that a word?).
> 
> Jean-Paul



More information about the Python-list mailing list