if the else short form
Lawrence D'Oliveiro
ldo at geek-central.gen.new_zealand
Tue Oct 5 01:55:33 EDT 2010
In message <mailman.1232.1285927634.29448.python-list at python.org>, Antoon
Pardon wrote:
> On Wed, Sep 29, 2010 at 01:38:48PM +0200, Hrvoje Niksic wrote:
>
>> BTW adding "==True" to a boolean value is redundant and can even break
>> for logically true values that don't compare equal to True (such as the
>> number 10 or the string "foo").
>
> But leaving it out can also break things.
Only in code which was incorrectly written to begin with.
More information about the Python-list
mailing list