[Python-Dev] PEP 384: Defining a Stable ABI
"Martin v. Löwis"
martin at v.loewis.de
Mon May 18 00:35:06 CEST 2009
>> Header Files and Preprocessor Definitions
>> -----------------------------------------
>>
>> Applications shall only include the header file Python.h (before
>> including any system headers), or, optionally, include pyconfig.h, and
>> then Python.h.
>
> What about structmember.h? It's not yet included with Python.h AFAICS.
Right - I think it should be, though. Is there a reason why it's not
included?
The only reason I can see is that it isn't completely namespace-safe,
e.g. it defines a constant READONLY. Not sure whether the T_ constants
would need to be changed as well.
So if that's the rationale, I would propose to make it namespace-safe
under a different file name, and add alias #defines in structmember.h
for compatibility.
I also think this should happen independent of PEP 384.
See also issue 2897 - perhaps we can even fix it for 3.1.
Regards,
Martin
More information about the Python-Dev
mailing list