New submission from STINNER Victor:

assert(PyGILState_Check()) cannot be used in functions called by 
Py_NewInterpreter(): the assertion fails.

I propose to add a flag to disable PyGILState_Check() while Py_NewInterpreter() 
is run to be able to add assertions in these functions.

The assertion helps to detect complex bugs like race condition in multithreaded 
applications.

----------
messages: 261750
nosy: haypo
priority: normal
severity: normal
status: open
title: Fix PyGILState_Check() with _testcapi.run_in_subinterp()
versions: Python 3.6

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26558>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to