Clarify the situation with the memory allocation for PyConfig.home
#100251
Labels
docs
Documentation in the Doc dir
PyConfig.home
#100251
mmomtchev commentedDec 14, 2022
Documentation
https://docs.python.org/3/c-api/init_config.html#c.PyConfig.home
Empirically, it seems that CPython expects this value to be allocated with
malloc()
as it will try tofree()
it when finalizing the environment. This is in stark contrast to the now deprecatedPy_SetPythonHome
which expected that the value is statically allocated.The text was updated successfully, but these errors were encountered: