Terry J. Reedy added the comment: Has or will builtin classes be modified to follow advice to include a separate __bool__? In 3.6.1,
>>> r = range(19**100) >>> bool(r) Traceback (most recent call last): File "<pyshell#1>", line 1, in <module> bool(r) OverflowError: Python int too large to convert to C ssize_t ---------- nosy: +serhiy.storchaka versions: +Python 3.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15718> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com