[issue30347] itertools.groupby() can fail a C assert()
Serhiy Storchaka
report at bugs.python.org
Fri May 12 09:46:47 EDT 2017
Serhiy Storchaka added the comment:
PR 1557 implements the simplest fix -- remove the assert and use Py_XSETREF() instead of simple assignment. Since the resulting code in _grouper_next() is identical to the code in groupby_next(), it was shared between these two functions.
----------
stage: needs patch -> patch review
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30347>
_______________________________________
More information about the Python-bugs-list
mailing list