[Python-ideas] More details in MemoryError (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Tue Jan 22 10:12:21 CET 2013
- Previous message: [Python-ideas] More details in MemoryError
- Next message: [Python-ideas] More details in MemoryError
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
- Previous message: [Python-ideas] More details in MemoryError
- Next message: [Python-ideas] More details in MemoryError
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]