-
Notifications
You must be signed in to change notification settings - Fork 204
Open
Description
The following minimal example results in a ValueError when executed directly
from itertools import pairwise
def g():
yield next(it)
it = pairwise(g())
next(it)
(e.g. run python example.py, which example.py containing the code above)
When running the same code in a qtconsole (or a Spyder cell) I get
The kernel died, restarting...
(or in spyder)
Exception ignored in: <generator object g at 0x000001F52B734940>
Traceback (most recent call last):
File "C:\Users\eendebakpt\AppData\Local\Temp\ipykernel_7984\1968913502.py", line 4, in g
ValueError: generator already executing
The kernel died, restarting...
The code is obviously not very sensible to run, but still the kernel should not restart.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels