[Python-checkins] bpo-44654: Do not export the union type related symbols (GH-27223)

serhiy-storchaka webhook-mailer at python.org
Sun Jul 18 08:55:35 EDT 2021


https://github.com/python/cpython/commit/8f50f44592190b5a8cb115f0d58d577036e68308
commit: 8f50f44592190b5a8cb115f0d58d577036e68308
branch: main
author: Serhiy Storchaka <storchaka at gmail.com>
committer: serhiy-storchaka <storchaka at gmail.com>
date: 2021-07-18T15:55:20+03:00
summary:

bpo-44654: Do not export the union type related symbols (GH-27223)

files:
M Include/internal/pycore_unionobject.h

diff --git a/Include/internal/pycore_unionobject.h b/Include/internal/pycore_unionobject.h
index 236989f0b202b2..9962f57610387d 100644
--- a/Include/internal/pycore_unionobject.h
+++ b/Include/internal/pycore_unionobject.h
@@ -8,13 +8,13 @@ extern "C" {
 #  error "this header requires Py_BUILD_CORE define"
 #endif
 
-PyAPI_DATA(PyTypeObject) _PyUnion_Type;
+extern PyTypeObject _PyUnion_Type;
 #define _PyUnion_Check(op) Py_IS_TYPE(op, &_PyUnion_Type)
-PyAPI_FUNC(PyObject *) _Py_union_type_or(PyObject *, PyObject *);
+extern PyObject *_Py_union_type_or(PyObject *, PyObject *);
 
 #define _PyGenericAlias_Check(op) PyObject_TypeCheck(op, &Py_GenericAliasType)
-PyAPI_FUNC(PyObject *) _Py_subs_parameters(PyObject *, PyObject *, PyObject *, PyObject *);
-PyAPI_FUNC(PyObject *) _Py_make_parameters(PyObject *);
+extern PyObject *_Py_subs_parameters(PyObject *, PyObject *, PyObject *, PyObject *);
+extern PyObject *_Py_make_parameters(PyObject *);
 
 #ifdef __cplusplus
 }



More information about the Python-checkins mailing list