diff options
author | Victor Stinner <vstinner@python.org> | 2022-01-22 17:55:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-22 17:55:48 (GMT) |
commit | 500c146387b01ea797b52e6a54caf228384e184c (patch) | |
tree | b10c015f37540da45ed534d0b4f9711c12a19f3e /Objects | |
parent | 1f8014c5b4ea7acee069ca453f6fbcad5990ebf0 (diff) | |
download | cpython-500c146387b01ea797b52e6a54caf228384e184c.zip cpython-500c146387b01ea797b52e6a54caf228384e184c.tar.gz cpython-500c146387b01ea797b52e6a54caf228384e184c.tar.bz2 |
bpo-46417: Clear more static types (GH-30796)
* Move PyContext static types into object.c static_types list.
* Rename PyContextTokenMissing_Type to _PyContextTokenMissing_Type
and declare it in pycore_context.h.
* _PyHamtItems types are no long exported: replace PyAPI_DATA() with
extern.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/object.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Objects/object.c b/Objects/object.c index a5ee8ee..a1663c0 100644 --- a/Objects/object.c +++ b/Objects/object.c @@ -4,6 +4,7 @@ #include "Python.h" #include "pycore_call.h" // _PyObject_CallNoArgs() #include "pycore_ceval.h" // _Py_EnterRecursiveCall() +#include "pycore_context.h" // _PyContextTokenMissing_Type #include "pycore_dict.h" // _PyObject_MakeDictFromInstanceAttributes() #include "pycore_floatobject.h" // _PyFloat_DebugMallocStats() #include "pycore_initconfig.h" // _PyStatus_EXCEPTION() @@ -1853,6 +1854,9 @@ static PyTypeObject* static_types[] = { &PyClassMethod_Type, &PyCode_Type, &PyComplex_Type, + &PyContextToken_Type, + &PyContextVar_Type, + &PyContext_Type, &PyCoro_Type, &PyDictItems_Type, &PyDictIterItem_Type, @@ -1867,6 +1871,7 @@ static PyTypeObject* static_types[] = { &PyDict_Type, &PyEllipsis_Type, &PyEnum_Type, + &PyFilter_Type, &PyFloat_Type, &PyFrame_Type, &PyFrozenSet_Type, @@ -1879,6 +1884,7 @@ static PyTypeObject* static_types[] = { &PyList_Type, &PyLongRangeIter_Type, &PyLong_Type, + &PyMap_Type, &PyMemberDescr_Type, &PyMemoryView_Type, &PyMethodDescr_Type, @@ -1905,12 +1911,21 @@ static PyTypeObject* static_types[] = { &PyUnicodeIter_Type, &PyUnicode_Type, &PyWrapperDescr_Type, + &PyZip_Type, &Py_GenericAliasType, &_PyAnextAwaitable_Type, &_PyAsyncGenASend_Type, &_PyAsyncGenAThrow_Type, &_PyAsyncGenWrappedValue_Type, + &_PyContextTokenMissing_Type, &_PyCoroWrapper_Type, + &_PyHamtItems_Type, + &_PyHamtKeys_Type, + &_PyHamtValues_Type, + &_PyHamt_ArrayNode_Type, + &_PyHamt_BitmapNode_Type, + &_PyHamt_CollisionNode_Type, + &_PyHamt_Type, &_PyInterpreterID_Type, &_PyManagedBuffer_Type, &_PyMethodWrapper_Type, |