Message293517
This triggers an assert() failure on debug-mode Python (or a leak in release Python):
from itertools import groupby
def f(n):
print("enter:", n)
if n == 5:
list(b)
print("leave:", n)
return n != 6
for (k, b) in groupby(range(10), f):
print(list(b))
With current trunk we get: python: ./Modules/itertoolsmodule.c:303: _grouper_next: Assertion `gbo->currkey == NULL' failed. |
|
Date |
User |
Action |
Args |
2017-05-11 21:10:21 | arigo | set | recipients:
+ arigo |
2017-05-11 21:10:21 | arigo | set | messageid: <1494537021.49.0.31945650773.issue30347@psf.upfronthosting.co.za> |
2017-05-11 21:10:21 | arigo | link | issue30347 messages |
2017-05-11 21:10:21 | arigo | create | |
|