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 /Include/internal | |
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 'Include/internal')
-rw-r--r-- | Include/internal/pycore_interp.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Include/internal/pycore_interp.h b/Include/internal/pycore_interp.h index b28e8a3..b8d0fdc 100644 --- a/Include/internal/pycore_interp.h +++ b/Include/internal/pycore_interp.h @@ -295,12 +295,11 @@ _PyInterpreterState_SetFinalizing(PyInterpreterState *interp, PyThreadState *tst } -extern int64_t _PyInterpreterState_ObjectToID(PyObject *); -// Export for the _xxinterpchannels module. +// Exports for the _testinternalcapi module. +PyAPI_FUNC(int64_t) _PyInterpreterState_ObjectToID(PyObject *); PyAPI_FUNC(PyInterpreterState *) _PyInterpreterState_LookUpID(int64_t); PyAPI_FUNC(PyInterpreterState *) _PyInterpreterState_LookUpIDObject(PyObject *); - PyAPI_FUNC(int) _PyInterpreterState_IDInitref(PyInterpreterState *); PyAPI_FUNC(int) _PyInterpreterState_IDIncref(PyInterpreterState *); PyAPI_FUNC(void) _PyInterpreterState_IDDecref(PyInterpreterState *); |