This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author georg.brandl
Recipients docs@python, georg.brandl, josh.r, unfamiliarplace
Date 2016-04-26.05:44:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1461649486.44.0.626465176902.issue26847@psf.upfronthosting.co.za>
In-reply-to
Content
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`.
History
Date User Action Args
2016-04-26 05:44:46georg.brandlsetrecipients: + georg.brandl, docs@python, josh.r, unfamiliarplace
2016-04-26 05:44:46georg.brandlsetmessageid: <1461649486.44.0.626465176902.issue26847@psf.upfronthosting.co.za>
2016-04-26 05:44:46georg.brandllinkissue26847 messages
2016-04-26 05:44:46georg.brandlcreate