I am using Python (both 2 and 3) for data analysis. When loading large data sets (eg. into a numpy array) then my whole system freezes. It does not react to anything, also not Ctr + Alt + F1. So I have to do an hard reset.
I have this problem in both Ubuntu and Debian.
Is there a way to execute a Python script "save", so that the script crashes and not the whole system?
range
vs.xrange
wherexrange
behaves like a generator. – Thomas Oct 03 '16 at 09:40