STINNER Victor added the comment:

> For third-party code, pyatomic.h is only needed by PyThreadState_GET() in 
> pystate.h. Maybe we should hide completly pyatomic.h. Currently, pyatomic.h 
> is not really used if Py_LIMITED_API is defined.

pystate_cplusplus.patch: disable completly pyatomic.h on C++, and modify 
pystate.h: PyThreadState_GET() is just an alias to PyThreadState_Get() with 
compiled with C++.

IMO pystate_cplusplus.patch makes more sense.

I don't understand the purpose of atomicfix.patch or pyatomic_cpp.patch, 
PyThreadState_GET() will not work with these patches.

Added file:

Python tracker <>
Python-bugs-list mailing list

Reply via email to