Re:Inside cpyext: Why emulating CPython C API is so Hard
by sitkack on Saturday September 22, 2018 @01:30PM
(#18046916)
I have been saying this for 8+ years, maybe longer. The CPython "Python.h" should be viewed as deprecated and folks should be using cffi [1] for all of their native code gluing needs. By targeting cffi, one gets futured proofed multi-runtime extensions for free. "Python.h" ties one to a specific implementation.
[1] https://cffi.readthedocs.io/en/latest/