(from #101524 (comment))
C-API exposed by gh-107359:
PyInterpreterID_Type
PyInterpreterID_New()
PyInterpreterID_LookUp()
PyInterpreterState_GetIDObject()
PyInterpreterState_RequireIDRef()
atexit_datacallbackfunc
PyUnstable_AtExit()
PyUnstable_InterpreterState_GetMainModule()
Add tests too.
Linked PRs
(from #101524 (comment))
C-API exposed by gh-107359:
PyInterpreterID_TypePyInterpreterID_New()PyInterpreterID_LookUp()PyInterpreterState_GetIDObject()PyInterpreterState_RequireIDRef()atexit_datacallbackfuncPyUnstable_AtExit()PyUnstable_InterpreterState_GetMainModule()Add tests too.
Linked PRs
__main__of interpreter #112548