◐ Shell
clean mode source ↗

gh-102660: Handle m_copy Specially for the sys and builtins Modules by ericsnowcurrently · Pull Request #102661 · python/cpython

added 2 commits

March 13, 2023 15:29

carljm added a commit to carljm/cpython that referenced this pull request

Mar 14, 2023

Fidget-Spinner pushed a commit to Fidget-Spinner/cpython that referenced this pull request

Mar 27, 2023
…ules (pythongh-102661)

It doesn't make sense to use multi-phase init for these modules. Using a per-interpreter "m_copy" (instead of PyModuleDef.m_base.m_copy) makes this work okay. (This came up while working on pythongh-101660.)

Note that we might instead end up disallowing re-load for sys/builtins since they are so special.

python#102660

Fidget-Spinner pushed a commit to Fidget-Spinner/cpython that referenced this pull request

Mar 27, 2023

warsaw pushed a commit to warsaw/cpython that referenced this pull request

Apr 11, 2023
…ules (pythongh-102661)

It doesn't make sense to use multi-phase init for these modules. Using a per-interpreter "m_copy" (instead of PyModuleDef.m_base.m_copy) makes this work okay. (This came up while working on pythongh-101660.)

Note that we might instead end up disallowing re-load for sys/builtins since they are so special.

python#102660

warsaw pushed a commit to warsaw/cpython that referenced this pull request

Apr 11, 2023