Serhiy Storchaka added the comment:

This doesn't matter because next() will raise an exception if it_index == 
PY_SSIZE_T_MAX in any case. The code should be changed much more to allow 
yielding an item with index PY_SSIZE_T_MAX, use other (negative) signal value 
and change the behavior of __setstate__ for negative values.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22939>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to