[issue45582] Rewrite getpath.c in Python

Steve Dower report at bugs.python.org
Fri Oct 29 17:27:28 EDT 2021


Steve Dower <steve.dower at python.org> added the comment:

So I think I've found my first completely unavoidable API break: PyConfig_Read(config) has to work before initialisation, but is also supposed to fill out all the fields (including the search path). But because we need at least an interpreter state, we now can't calculate everything.

The only test that seems to be affected here is test_embed.test_init_read_set(), which does a PyConfig_Read() and then inserts new paths into module_search_paths before initialising. With that one skipped, I think everything else can be handled.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45582>
_______________________________________


More information about the Python-bugs-list mailing list