Antoine Pitrou added the comment: > Under very low memory condition, PyErr_NoMemory() or > PyErr_NormalizeException() enters an unlimited loop when the free list > of MemoryError becomes empty.
The real question is why the free list becomes empty. Either way, I don't think a read-only singleton is a good idea. It may be simpler to call Py_FatalError in such cases. ---------- nosy: +neologix _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19835> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com