[issue11329] PyEval_InitThreads() not safe before Py_Initialize()

2011-03-13 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 4c59cd84086f by Antoine Pitrou in branch '3.2': Issue #11329: PyEval_InitThreads() cannot be called before Py_Initialize() anymore http://hg.python.org/cpython/rev/4c59cd84086f New changeset 3c0edb157ea2 by Antoine Pitrou in branch

[issue11329] PyEval_InitThreads() not safe before Py_Initialize()

2011-03-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Patch now committed, thank you! -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11329

[issue11329] PyEval_InitThreads() not safe before Py_Initialize()

2011-03-12 Thread Gediminas Liktaras
Gediminas Liktaras glikta...@gmail.com added the comment: I have attached a patch that fixes this issue. Please let me know if there are any problems. -- keywords: +patch nosy: +gliktaras Added file: http://bugs.python.org/file21094/issue11329-1.patch

[issue11329] PyEval_InitThreads() not safe before Py_Initialize()

2011-02-27 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11329 ___ ___

[issue11329] PyEval_InitThreads() not safe before Py_Initialize()

2011-02-27 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Can you write a patch for the documentation? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11329 ___

[issue11329] PyEval_InitThreads() not safe before Py_Initialize()

2011-02-26 Thread Juraj Ivancic
New submission from Juraj Ivancic juraj.ivan...@gmail.com: It seems that PyEval_InitThreads() can no longer be called before Py_Initialize(). I get a fatal error in PyThreadState_GET(). This contradicts the documentation http://docs.python.org/release/3.2/c-api/init.html#PyEval_InitThreads

[issue11329] PyEval_InitThreads() not safe before Py_Initialize()

2011-02-26 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Given the way the new GIL works, I'm afraid it's not really possible to support this (it needs some thread-state to be available). Note that there is no reason, AFAIK, why you would want to call PyEval_InitThreads() before Py_Initialize().