bpo-35259: Limit `Py_FinalizeEx()` to `Py_LIMITED_API >= 0x03060000`. (GH-10620)
(cherry picked from commit 3e8f962e63
)
Co-authored-by: Arthur Neufeld <aneufeld@seinesoftware.ca>
This commit is contained in:
parent
c7b7a43cd8
commit
d1e7175887
|
@ -99,7 +99,9 @@ PyAPI_FUNC(void) Py_InitializeEx(int);
|
|||
PyAPI_FUNC(void) _Py_FatalInitError(_PyInitError err) _Py_NO_RETURN;
|
||||
#endif
|
||||
PyAPI_FUNC(void) Py_Finalize(void);
|
||||
#if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03060000
|
||||
PyAPI_FUNC(int) Py_FinalizeEx(void);
|
||||
#endif
|
||||
PyAPI_FUNC(int) Py_IsInitialized(void);
|
||||
|
||||
/* Subinterpreter support */
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
Conditionally declare :c:func:`Py_FinalizeEx()` (new in 3.6) based on
|
||||
Py_LIMITED_API. Patch by Arthur Neufeld.
|
Loading…
Reference in New Issue