Raymond Hettinger <raymond.hettin...@gmail.com> added the comment:
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. ---------- nosy: +rhettinger resolution: -> rejected stage: patch review -> resolved status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue43929> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com