STINNER Victor added the comment:

Hum, Clang is not kind enough to understand that gil_state is not used when 
uninitialized.

Well, I always hesitated to refactor the code. So here is a cleanup which moves 
PyGILState_Ensure/PyGILState_Release to the caller. It duplicates a few lines 
of code, but the new code should be more readable.

----------
keywords: +patch
Added file: http://bugs.python.org/file32878/cleanup.patch

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

Reply via email to