[Python-Dev] Extension modules, Threading, and the GIL

"Martin v. Löwis" martin@v.loewis.de
Wed, 08 Jan 2003 15:00:42 +0100


Mark Hammond wrote:
> But what if in some cases, this callback is as a result of Python code on
> the same thread - ie, there already exists a Python thread-state higher up
> the stack?

Then you get a deadlock. However, it was not your (stated) goal to 
support this case. You mentioned threads that Python had never seen 
before - there can't be a thread state higher up in such a thread.

Regards,
Martin