On 2015-04-30, Cecil Westerhof <ce...@decebal.nl> wrote: > If I execute: > l = range(int(1E9) > > The python process gobbles up all the memory and is killed. The > problem is that after this my swap is completely used, because other > processes have swapped to it. This make those programs more slowly. > Is there a way to circumvent Python claiming all the memory?
I presume "don't do that" has already occured to you? You can always use ulimit to limit the memory allowed for the process running Python. -- Grant Edwards grant.b.edwards Yow! Should I get locked at in the PRINCICAL'S gmail.com OFFICE today -- or have a VASECTOMY?? -- https://mail.python.org/mailman/listinfo/python-list