Skip to content

Commit 836e0a7

Browse files
pythongh-111698: Restrict Py_mod_multiple_interpreters to 3.12+ Under Py_LIMITED_API (pythongh-111707)
This should have been done in pythongh-104148. (A similar fix has already be done for that slot's value macros, and backported to 3.12. See pythongh-110968.)
1 parent c5063fd commit 836e0a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Include/moduleobject.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ struct PyModuleDef_Slot {
7373

7474
#define Py_mod_create 1
7575
#define Py_mod_exec 2
76-
#define Py_mod_multiple_interpreters 3
76+
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030c0000
77+
# define Py_mod_multiple_interpreters 3
78+
#endif
7779

7880
#ifndef Py_LIMITED_API
7981
#define _Py_mod_LAST_SLOT 3

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy