True

Peter Hansen peter at engcorp.com
Thu Aug 7 11:10:36 EDT 2003


Daniel Klein wrote:
> 
> Thanks Peter, that will do the trick. Just  wondering though why you
> chose to code the opposite values [...]

As Skip said... but it should have had a comment anyway, since it
wasn't clear.  You could also consider using "not not boolVal" if
you want to make the code _slightly_ (IMHO) more readable, and slightly
slower, but I think one still needs a comment explaining it. :-(

-Peter




More information about the Python-list mailing list