Lukas Lueg added the comment:

The heuristic basically has to decide if memory pressure is so high that it's 
not save to return to the interpreter. Even if there is a chosen value (e.g. 
failed allocation attempts below 1mb are considered fatal), there can always be 
another OS-thread in the interpreter process that eats away exactly that memory 
while we are returning MemoryError - the program might still hang.
FWICS all MemoryErrors are to be considered fatal or none of them

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16381>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to