You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Activity