mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
gh-104108: Add the Py_mod_multiple_interpreters Module Def Slot (gh-104148)
I'll be adding a value to indicate support for per-interpreter GIL in gh-99114.
This commit is contained in:
parent
55671fe047
commit
1c420e138f
5 changed files with 122 additions and 22 deletions
|
|
@ -78,11 +78,16 @@ struct PyModuleDef_Slot {
|
|||
|
||||
#define Py_mod_create 1
|
||||
#define Py_mod_exec 2
|
||||
#define Py_mod_multiple_interpreters 3
|
||||
|
||||
#ifndef Py_LIMITED_API
|
||||
#define _Py_mod_LAST_SLOT 2
|
||||
#define _Py_mod_LAST_SLOT 3
|
||||
#endif
|
||||
|
||||
/* for Py_mod_multiple_interpreters: */
|
||||
#define Py_MOD_MULTIPLE_INTERPRETERS_NOT_SUPPORTED ((void *)0)
|
||||
#define Py_MOD_MULTIPLE_INTERPRETERS_SUPPORTED ((void *)1)
|
||||
|
||||
#endif /* New in 3.5 */
|
||||
|
||||
struct PyModuleDef {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue