Message264216
You didn't test your examples:
>>> [] == False
False
False is not equal to the "empty value" of any other type than other numeric types. (This is mostly because of how booleans were originally introduced to Python.)
"is false", on the other hand, is the conventional shorthand for `bool(x) == False`. |
|
Date |
User |
Action |
Args |
2016-04-26 05:44:46 | georg.brandl | set | recipients:
+ georg.brandl, docs@python, josh.r, unfamiliarplace |
2016-04-26 05:44:46 | georg.brandl | set | messageid: <1461649486.44.0.626465176902.issue26847@psf.upfronthosting.co.za> |
2016-04-26 05:44:46 | georg.brandl | link | issue26847 messages |
2016-04-26 05:44:46 | georg.brandl | create | |
|