Serhiy Storchaka added the comment: This bug allows to create new bool instances.
>>> false = bool.from_bytes(b'\0', 'big') >>> true = bool.from_bytes(b'\1', 'big') >>> bool(false) False >>> bool(true) True >>> false is False False >>> true is True False >>> false False >>> true False ---------- priority: normal -> high _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23640> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com