Sorry for the bad timing. I dislike working under pressure. The discussion on python-dev, the bug tracker and pull requests was really interesting.
The issue has been fixed: the whole idea of stable ABI for PyConfig has been abandoned. If you want to switch to a different version of Python when you embed Python, you must recompile your code. It was always like that and the PEP 587 doesn't change anything. PyConfig_InitPythonConfig() and PyConfig_InitIsolatedConfig() initialize PyConfig to sane default configuration. So if we add new fields in Python 3.9, you don't have to manually initialize these fields, except if you explicitly want to use these new fields to benefit of new configuration options. Victor Le mar. 1 oct. 2019 à 00:38, Nick Coghlan <ncogh...@gmail.com> a écrit : > > > > On Tue., 1 Oct. 2019, 6:47 am Victor Stinner, <vstin...@python.org> wrote: >> >> Hi back, >> >> It seems like "config.struct_size = sizeof(PyConfig);" syntax is "not >> really liked". >> >> I don't see any traction to provide a stable ABI for embedded Python. >> The consensus is more towards: "it doesn't work and we don't want to >> bother with false promises" (nor add code for that). >> >> Since Lukasz is supposed to tag 3.8.0rc1 today, I propose to remove >> anything related to "stable API" or "stable ABI" from the PEP 587 >> right now. I wrote two PRs to remove struct_size: >> >> * CPython: https://github.com/python/cpython/pull/16500 >> * PEP 587: https://github.com/python/peps/pull/1185 >> >> Later, if we decide to start proving a stable ABI for embedded Python, >> we can still add a "version" or "struct_size" field to PyConfig later >> (for example in Python 3.9). > > > Thanks Victor, I think this is the right way for us to go, given the relative > timing in the release cycle. > > The idea of some day expanding the stable ABI to cover embedding > applications, not just extension modules, is an intriguing one, but I'm > genuinely unsure anyone would ever actually use it. > > Cheers, > Nick. > > > >> >> Victor >> _______________________________________________ >> Python-Dev mailing list -- python-dev@python.org >> To unsubscribe send an email to python-dev-le...@python.org >> https://mail.python.org/mailman3/lists/python-dev.python.org/ >> Message archived at >> https://mail.python.org/archives/list/python-dev@python.org/message/2JAJQA5OANFPXAJ3327RRPHPQLKVP2EW/ -- Night gathers, and now my watch begins. It shall not end until my death. _______________________________________________ Python-Dev mailing list -- python-dev@python.org To unsubscribe send an email to python-dev-le...@python.org https://mail.python.org/mailman3/lists/python-dev.python.org/ Message archived at https://mail.python.org/archives/list/python-dev@python.org/message/36RTEPNE6HSPMXGDGSHWDJN56GZRX4YU/