[Python-ideas] More details in MemoryError

Antoine Pitrou solipsis at pitrou.net
Tue Jan 22 10:12:21 CET 2013


Le Tue, 22 Jan 2013 18:53:49 +1000,
Nick Coghlan <ncoghlan at gmail.com> a
écrit :
> There's a bigger reason memory error must be stateless: we
> preallocate and reuse it.

Not anymore, it's a freelist now:
http://hg.python.org/cpython/file/e8f40d4f497c/Objects/exceptions.c#l2123

The "stateless" part was bogus in Python 3, because of the embedded
traceback and context.

Regards

Antoine.





More information about the Python-ideas mailing list