Implicit conversion to boolean in if and while statements
Serhiy Storchaka
storchaka at gmail.com
Mon Jul 16 09:01:45 EDT 2012
On 15.07.12 19:50, Rick Johnson wrote:
> We must NEVER present "if" in such confusing manner as ExampleA.
## EXAMPLE C ##
py> if bool(money) == True:
... do_something()
More information about the Python-list
mailing list