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 rhettinger
Recipients aa1371, rhettinger, sarf, steven.daprano
Date 2021-04-24.23:03:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Steven is right that this would be a behavior change.  It is also out of line with Python norms where all objects are born true and have to learn to be false with either __len__ or __bool__.  It is not a norm for bool(obj) to raise an exception.

Following Steven's suggestion, I'll mark this a closed.

Thank for the suggestion.
Date User Action Args
2021-04-24 23:03:42rhettingersetrecipients: + rhettinger, steven.daprano, sarf, aa1371
2021-04-24 23:03:42rhettingersetmessageid: <>
2021-04-24 23:03:42rhettingerlinkissue43929 messages
2021-04-24 23:03:42rhettingercreate