[issue42431] Fix outdated bytes comments

STINNER Victor report at bugs.python.org
Mon Nov 23 04:36:37 EST 2020


STINNER Victor <vstinner at python.org> added the comment:

> 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.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42431>
_______________________________________


More information about the Python-bugs-list mailing list