Steven D'Aprano <steve-remove-t...@cybersource.com.au> writes: > Writing the explicit tests: > if bool(myInt): > or even: > if myInt <> 0: > > are firmly in the same category. The only difference is that it is more > familiar and therefore comfortable to those who are used to languages > that don't have Python's truth-testing rules.
It's like list.append returning None. It helps catch errors. -- http://mail.python.org/mailman/listinfo/python-list