[Python-Dev] Change definition of Py_END_ALLOW_THREADS?

Mark Hammond mhammond@skippinet.com.au
Thu, 13 Feb 2003 15:30:36 +1100


My apologies - I was simply not seeing the forest for the trees.

My entire problem is solved simply by making the API look like:

old_state = PyAutoThreadState_Ensure();
...
PyAutoThreadState_Release(old_state);

I will post an updated PEP and patch soon.

Mark.