summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_tupleobject.h
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-10-02 21:51:20 (GMT)
committerGitHub <noreply@github.com>2019-10-02 21:51:20 (GMT)
commit61691d833631fed42b86605b09e1535e3e8d40e5 (patch)
tree766d3ec48508213f7e371728b29c9cf49cdecee9 /Include/internal/pycore_tupleobject.h
parentb3e7045f8314e7b62cd95861d207fe2f97e47198 (diff)
downloadcpython-61691d833631fed42b86605b09e1535e3e8d40e5.zip
cpython-61691d833631fed42b86605b09e1535e3e8d40e5.tar.gz
cpython-61691d833631fed42b86605b09e1535e3e8d40e5.tar.bz2
bpo-38353: Cleanup includes in the internal C API (GH-16548)
Use forward declaration of types to avoid includes in the internal C API. Add also comment to justify other includes.
Diffstat (limited to 'Include/internal/pycore_tupleobject.h')
-rw-r--r--Include/internal/pycore_tupleobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/internal/pycore_tupleobject.h b/Include/internal/pycore_tupleobject.h
index 9fcfc5c..f95f16c 100644
--- a/Include/internal/pycore_tupleobject.h
+++ b/Include/internal/pycore_tupleobject.h
@@ -8,7 +8,7 @@ extern "C" {
# error "this header requires Py_BUILD_CORE define"
#endif
-#include "tupleobject.h"
+#include "tupleobject.h" /* _PyTuple_CAST() */
#define _PyTuple_ITEMS(op) (_PyTuple_CAST(op)->ob_item)
PyAPI_FUNC(PyObject *) _PyTuple_FromArray(PyObject *const *, Py_ssize_t);