diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2024-03-21 17:15:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-21 17:15:02 (GMT) |
commit | 617158e07811edfd6fd552a3d84b0beedd8f1d18 (patch) | |
tree | da45d921852f67ce2cc7a086c5c1b79ad20b4b2d /Python | |
parent | abdd1f938f08e536864532b2071f144515ecc88b (diff) | |
download | cpython-617158e07811edfd6fd552a3d84b0beedd8f1d18.zip cpython-617158e07811edfd6fd552a3d84b0beedd8f1d18.tar.gz cpython-617158e07811edfd6fd552a3d84b0beedd8f1d18.tar.bz2 |
gh-76785: Drop PyInterpreterID_Type (gh-117101)
I added it quite a while ago as a strategy for managing interpreter lifetimes relative to the PEP 554 (now 734) implementation. Relatively recently I refactored that implementation to no longer rely on InterpreterID objects. Thus now I'm removing it.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pystate.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Python/pystate.c b/Python/pystate.c index 6d63eac..3ef4051 100644 --- a/Python/pystate.c +++ b/Python/pystate.c @@ -2,7 +2,6 @@ /* Thread and interpreter state structures and their interfaces */ #include "Python.h" -#include "interpreteridobject.h" // PyInterpreterID_Type #include "pycore_abstract.h" // _PyIndex_Check() #include "pycore_ceval.h" #include "pycore_code.h" // stats @@ -1131,10 +1130,6 @@ PyInterpreterState_GetDict(PyInterpreterState *interp) int64_t _PyInterpreterState_ObjectToID(PyObject *idobj) { - if (PyObject_TypeCheck(idobj, &PyInterpreterID_Type)) { - return _PyInterpreterID_GetID(idobj); - } - if (!_PyIndex_Check(idobj)) { PyErr_Format(PyExc_TypeError, "interpreter ID must be an int, got %.100s", |