[Python-3000] MemoryError oddities
Antoine Pitrou
solipsis at pitrou.net
Fri Aug 1 01:40:58 CEST 2008
Amaury Forgeot d'Arc <amauryfa <at> gmail.com> writes:
>
> I corrected this with r65341.
> But this prebuilt MemoryError has another nasty consequence:
> when PyErr_NoMemory is raised, the traceback is attached to the
> prebuilt object,
> and all local variables of the failing procedure are still referenced
> and will not be freed.
I suppose this prebuilt MemoryError isn't very multithreading-friendly either...
How about using a preallocated freelist scheme instead?
More information about the Python-3000
mailing list