[Python-Dev] C ABI and #ifndef Py_LIMITED_API

Nick Coghlan ncoghlan at gmail.com
Sat Jan 24 08:49:30 CET 2015


On 15 January 2015 at 02:24, Ethan Furman <ethan at stoneleaf.us> wrote:
> On 01/14/2015 12:13 AM, Georg Brandl wrote:
>> On 01/14/2015 08:32 AM, Ethan Furman wrote:
>>>
>>> In the CPython source code I see
>>>
>>> #ifndef Py_LIMITED_API
>>>
>>> Is there a section in the docs that explains the purpose?  If not, can
>>> someone give me the cliff notes version?
>>
>> PEP 384, and in particular [1] should get you started.
>>
>> [1]
>> https://www.python.org/dev/peps/pep-0384/#header-files-and-preprocessor-definitions
>
> Nice, that answered other questions as well!  :)

It's worth noting that https://docs.python.org/3/c-api/stable.html is
the relevant reference in the main C API docs.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-Dev mailing list