SIGN IN SIGN UP

gh-102660: Handle m_copy Specially for the sys and builtins Modules (gh-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 gh-101660.)

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

https://github.com/python/cpython/issues/102660
E
Eric Snow committed
cdb21ba74d933e262bc1696b6ce78b50cb5a4443
Parent: 80abd62
Committed by GitHub <noreply@github.com> on 3/14/2023, 8:01:35 PM