This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients serhiy.storchaka, vstinner
Date 2020-11-23.09:36:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1606124197.97.0.80500702223.issue42431@roundup.psfhosted.org>
In-reply-to
Content
> Is it true that headers in Include/internal are more private than headers in Include/cpython? It is not clear from names.

You cannot include an header file from Include/internal by default. All internal header files are guarded with:

#ifndef Py_BUILD_CORE
#  error "this header requires Py_BUILD_CORE define"
#endif

A C extension must define Py_BUILD_CORE macro or variant to include such header file. There is no intent to tehcnically prevent to include a header file, only an header to warn users that you should not do that unless they understand what they do.
History
Date User Action Args
2020-11-23 09:36:38vstinnersetrecipients: + vstinner, serhiy.storchaka
2020-11-23 09:36:37vstinnersetmessageid: <1606124197.97.0.80500702223.issue42431@roundup.psfhosted.org>
2020-11-23 09:36:37vstinnerlinkissue42431 messages
2020-11-23 09:36:37vstinnercreate