I was learning itertools
in Python and accidentally invoked an infinite loop in iPython shell, here's what my inputs:
import itertools as it
list(it.zip_longest(it.count(), [1,2]))
The last line would run indefinitely until the computer crashes.
I tried to terminate the execution with Ctrl-C
, but it didn't work.
How do I force the execution to terminate in this case?