[issue37040] checking for membership in itertools.count enters infinite loop with no way to exit

Dan Rose report at bugs.python.org
Sat May 25 11:20:23 EDT 2019


Dan Rose <daniel.buchoff at gmail.com> added the comment:

Reopening. While my behavioral expectation may be wrong, the current behavior is inappropriate. It would make more sense for count to have a `__contains__` method which raises a TypeError.

----------
resolution: rejected -> 
status: closed -> open

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37040>
_______________________________________


More information about the Python-bugs-list mailing list