mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
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.
This commit is contained in:
parent
1f8014c5b4
commit
500c146387
7 changed files with 30 additions and 54 deletions
|
@ -2953,27 +2953,6 @@ PyTypeObject _PyHamt_CollisionNode_Type = {
|
|||
};
|
||||
|
||||
|
||||
PyStatus
|
||||
_PyHamt_InitTypes(PyInterpreterState *interp)
|
||||
{
|
||||
if (!_Py_IsMainInterpreter(interp)) {
|
||||
return _PyStatus_OK();
|
||||
}
|
||||
|
||||
if ((PyType_Ready(&_PyHamt_Type) < 0) ||
|
||||
(PyType_Ready(&_PyHamt_ArrayNode_Type) < 0) ||
|
||||
(PyType_Ready(&_PyHamt_BitmapNode_Type) < 0) ||
|
||||
(PyType_Ready(&_PyHamt_CollisionNode_Type) < 0) ||
|
||||
(PyType_Ready(&_PyHamtKeys_Type) < 0) ||
|
||||
(PyType_Ready(&_PyHamtValues_Type) < 0) ||
|
||||
(PyType_Ready(&_PyHamtItems_Type) < 0))
|
||||
{
|
||||
return _PyStatus_ERR("can't init hamt types");
|
||||
}
|
||||
|
||||
return _PyStatus_OK();
|
||||
}
|
||||
|
||||
void
|
||||
_PyHamt_Fini(PyInterpreterState *interp)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue