mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-94673: Hide Objects in PyTypeObject Behind Accessors (gh-104074)
This makes it much cleaner to move more PyTypeObject fields to PyInterpreterState.
This commit is contained in:
parent
fdd878650d
commit
f73abf8e03
6 changed files with 352 additions and 244 deletions
|
@ -1309,7 +1309,7 @@ _PyContext_Init(PyInterpreterState *interp)
|
|||
|
||||
PyObject *missing = get_token_missing();
|
||||
if (PyDict_SetItemString(
|
||||
PyContextToken_Type.tp_dict, "MISSING", missing))
|
||||
_PyType_GetDict(&PyContextToken_Type), "MISSING", missing))
|
||||
{
|
||||
Py_DECREF(missing);
|
||||
return _PyStatus_ERR("can't init context types");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue