Bug report
(See #110968 (comment).)
When I added Py_mod_multiple_interpreters1 to Include/moduleobject.h, I forgot to restrict the limited API version in which it should be there.
The fix should be something similar to what we did in gh-110969, combined with gh-111584. We will need to backport the change to 3.12.
Basically, the change would be something like:
- #define Py_mod_multiple_interpreters 3
+ #if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030c0000
+ # define Py_mod_multiple_interpreters 3
+ #endif
FYI, gh-110968 already dealt with the same issue for the pre-defined slot values (e.g. Py_MOD_MULTIPLE_INTERPRETERS_SUPPORTED).
CC @encukou, @vstinner
Linked PRs