Message 79147 - Python tracker (original) (raw)

Would it be possible to rework your code so as not to define two versions of Py_AddPendingCall() and Py_MakePendingCalls(), only putting #ifdef WITH_THREAD sections where it's necessary? Or would it make the code too quirky?

Also, it would be nice to have a test for this specific feature (e.g. using a dedicated function in the _testcapi module), but perhaps it isn't a showstopper either.