[python] == doesn't coerce types; use bool() to demonstrate truthiness instead. Closes #418.

This commit is contained in:
Adam Brenecki 2013-11-26 18:12:53 +10:30
parent 77facdeafe
commit 1e60055977

View File

@ -105,8 +105,8 @@ None is None #=> True
# None, 0, and empty strings/lists all evaluate to False.
# All other values are True
0 == False #=> True
"" == False #=> True
bool(0) #=> False
bool("") #=> False
####################################################