Equivalent code to the bool() built-in function

Gregory Ewing greg.ewing at canterbury.ac.nz
Tue Apr 19 19:59:51 EDT 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