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 atuining, eric.snow, izbyshev, lemburg, serhiy.storchaka, tim.peters, vstinner
Date 2018-11-13.08:07:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Status: only pyport. and tupleobject.h use Py_BUILD_CORE, and only tupleobject.h uses "#ifdef Py_BUILD_CORE" (contains code specific to internals).

$ grep Py_BUILD_CORE Include/*.h
Include/pyport.h:#               if defined(Py_BUILD_CORE) || defined(Py_BUILD_CORE_BUILTIN)
Include/pyport.h:#               else /* Py_BUILD_CORE */
Include/pyport.h:#               endif /* Py_BUILD_CORE */
Include/pyport.h:#if defined(Py_BUILD_CORE) || defined(Py_BUILD_CORE_BUILTIN)
Include/pyport.h:#endif /* Py_BUILD_CORE */
Include/tupleobject.h:#ifdef Py_BUILD_CORE


#ifdef Py_BUILD_CORE
#  define _PyTuple_ITEMS(op) ((((PyTupleObject *)(op))->ob_item))

I added this macro in bpo-35199, to prepare the C code for a new C API hiding implementation details: see bpo-35206.
Date User Action Args
2018-11-13 08:07:49vstinnersetrecipients: + vstinner, lemburg, tim.peters, atuining, eric.snow, serhiy.storchaka, izbyshev
2018-11-13 08:07:49vstinnersetmessageid: <>
2018-11-13 08:07:49vstinnerlinkissue35081 messages
2018-11-13 08:07:49vstinnercreate