Limit Python VM memory
On *nix you can play around with the ulimit command, specifically the -m (max memory size) and -v (virtual memory).
I'm trying to find a way to limit the memory available for the Python VM, as the option "-Xmx" in the Java VM does. (The idea is to be able to play with the MemoryError exception)
I'm not sure this option exist but there may be a solution using a command of the OS to "isolate" a process and its memory.
Thank you.