mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
gh-94673: Ensure Builtin Static Types are Readied Properly (gh-103940)
There were cases where we do unnecessary work for builtin static types. This also simplifies some work necessary for a per-interpreter GIL.
This commit is contained in:
parent
56c7176d1d
commit
d2e2e53f73
21 changed files with 89 additions and 169 deletions
|
|
@ -66,12 +66,6 @@ static PyMethodDef symtable_methods[] = {
|
|||
{NULL, NULL} /* sentinel */
|
||||
};
|
||||
|
||||
static int
|
||||
symtable_init_stentry_type(PyObject *m)
|
||||
{
|
||||
return PyType_Ready(&PySTEntry_Type);
|
||||
}
|
||||
|
||||
static int
|
||||
symtable_init_constants(PyObject *m)
|
||||
{
|
||||
|
|
@ -105,7 +99,6 @@ symtable_init_constants(PyObject *m)
|
|||
}
|
||||
|
||||
static PyModuleDef_Slot symtable_slots[] = {
|
||||
{Py_mod_exec, symtable_init_stentry_type},
|
||||
{Py_mod_exec, symtable_init_constants},
|
||||
{0, NULL}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue