[issue16381] Introduce option to force the interpreter to exit upon MemoryErrors

Guido van Rossum report at bugs.python.org
Fri Nov 2 14:46:26 CET 2012


Guido van Rossum added the comment:

There used to be some places in the C code that raise MemoryError to
indicate that some parameter indicating a desired result size is out
of range, i.e. before even trying to allocate anything. I can't
confirm any, but these should probably be replaced with another
exception. (I thought string times integer was one such place, but it
raises OverflowError now.) If there are any left those should probably
be replaced with OverflowError.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16381>
_______________________________________


More information about the Python-bugs-list mailing list