I would like to allow isolated subinterpreters in the jep project and I am trying to determine the correct way to initialize a PyInterpreterConfig. The PEP mentions new macros for PyInterpreterConfig_INIT
and PyInterpreterConfig_LEGACY_INIT
, these would fit my needs perfectly but I cannot find those in Python 3.12. In pylifecycle.h I found _PyInterpreterConfig_INIT
and _PyInterpreterConfig_LEGACY_INIT
but it is my understanding the _Py
prefix is intended for internal use so I would like to know if those macros should be used outside of cpython itself or if there is a different way that is recommended for initializing a PyInterpreterConfig.
1 Like