STINNER Victor <victor.stin...@haypocalc.com> added the comment: Here I come with a patch! nirai idea was the good one: prealloc PyThreadState before creating the thread. Raise a MemoryError if the allocation fail, instead of raising a *fatal* Python error.
Patch is quite simple and allow better error handling. ---------- keywords: +patch Added file: http://bugs.python.org/file15805/thread_prealloc_pystate.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7544> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com