-
-
Notifications
You must be signed in to change notification settings - Fork 34.4k
Implement PEP 793 – PyModExport #140550
Copy link
Copy link
Open
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-C-APItype-featureA feature request or enhancementA feature request or enhancement
Metadata
Metadata
Assignees
Labels
interpreter-core(Objects, Python, Grammar, and Parser dirs)(Objects, Python, Grammar, and Parser dirs)topic-C-APItype-featureA feature request or enhancementA feature request or enhancement
Feature or enhancement
Proposal:
See PEP 793. I'll copy the abstract for reference:
PyInit_*(gh-140550: PEP 793 reference documentation #141197)DYNLOADFILEusers#141780)PyImport_AppendInittab& friendsPyMod_ExecinPyImport_CreateModuleFromInitfuncdocs is linked (gh-140550: PEP 793 reference documentation #141197)PyMODEXPORT_FUNCin blurb for#141672#141780xxlimited.cupdate (gh-140550: Update xxlimited with 3.15 limited API & PEP 697 #142827)_Py_OPAQUE_PYOBJECTinxxlimited.c(by 3.15.0 beta)Optional stretch goals:
PyInitfunction fromLib/test/test_cext/extension.c(gh-140550: Remove PyInit function from test_cext #141511)importdl: load the DLL onceboolfor the GIL flag (gh-140550: Use a bool for the Py_mod_gil value #141519)spec.nameinPyModule_FromSlotsAndSpecPy_mod_methodsPyModule_GetStateWithToken()functionHas this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
No response
Linked PRs
See also:
__declspec(dllexport)on Windows #141672