if the else short form
Lawrence D'Oliveiro
ldo at geek-central.gen.new_zealand
Tue Oct 5 01:54:42 EDT 2010
In message <877hi44w53.fsf at xemacs.org>, 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").
I wonder if there’s a name for this sort of thing: “boolnoob”, perhaps. Or
“UUOBC” (“Useless Use Of Boolean Comparison”).
More information about the Python-list
mailing list