diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2023-05-01 20:34:43 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-01 20:34:43 -0600 |
commit | f73abf8e03fd370c86fbb2a249fe1e065f7d84b4 (patch) | |
tree | fb471d3aafd99ade5905fe5292e807e5c4cad25a /Python | |
parent | fdd878650d325297cd801305bc2d1b0e903e42b4 (diff) | |
download | cpython-git-f73abf8e03fd370c86fbb2a249fe1e065f7d84b4.tar.gz |
gh-94673: Hide Objects in PyTypeObject Behind Accessors (gh-104074)
This makes it much cleaner to move more PyTypeObject fields to PyInterpreterState.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/context.c b/Python/context.c index 5d38550840..1ffae9871b 100644 --- a/Python/context.c +++ b/Python/context.c @@ -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"); |