Skip to content

Commit 617158e

Browse files
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.
1 parent abdd1f9 commit 617158e

18 files changed

+363
-449
lines changed

Include/cpython/interpreteridobject.h

Lines changed: 0 additions & 14 deletions
This file was deleted.

Include/internal/pycore_interp.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -295,12 +295,11 @@ _PyInterpreterState_SetFinalizing(PyInterpreterState *interp, PyThreadState *tst
295295
}
296296

297297

298-
extern int64_t _PyInterpreterState_ObjectToID(PyObject *);
299298

300-
// Export for the _xxinterpchannels module.
299+
// Exports for the _testinternalcapi module.
300+
PyAPI_FUNC(int64_t) _PyInterpreterState_ObjectToID(PyObject *);
301301
PyAPI_FUNC(PyInterpreterState *) _PyInterpreterState_LookUpID(int64_t);
302302
PyAPI_FUNC(PyInterpreterState *) _PyInterpreterState_LookUpIDObject(PyObject *);
303-
304303
PyAPI_FUNC(int) _PyInterpreterState_IDInitref(PyInterpreterState *);
305304
PyAPI_FUNC(int) _PyInterpreterState_IDIncref(PyInterpreterState *);
306305
PyAPI_FUNC(void) _PyInterpreterState_IDDecref(PyInterpreterState *);

Include/interpreteridobject.h

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)