mirror of
https://github.com/python/cpython.git
synced 2024-11-23 01:45:25 +08:00
gh-114626: Add again _PyCFunctionFastWithKeywords name (GH-115561)
Keep the old private _PyCFunctionFastWithKeywords name (Python 3.7) as an alias to the new public name PyCFunctionFastWithKeywords (Python 3.13a4). _PyCFunctionWithKeywords doesn't exist in Python 3.13a3, whereas _PyCFunctionFastWithKeywords was removed in Python 3.13a4.
This commit is contained in:
parent
cbe809dfa9
commit
aa8c1a0d16
@ -31,7 +31,7 @@ typedef PyObject *(*PyCMethod)(PyObject *, PyTypeObject *, PyObject *const *,
|
||||
// Note that the underscore-prefixed names were documented in public docs;
|
||||
// people may be using them.
|
||||
typedef PyCFunctionFast _PyCFunctionFast;
|
||||
typedef PyCFunctionWithKeywords _PyCFunctionWithKeywords;
|
||||
typedef PyCFunctionFastWithKeywords _PyCFunctionFastWithKeywords;
|
||||
|
||||
// Cast an function to the PyCFunction type to use it with PyMethodDef.
|
||||
//
|
||||
|
@ -0,0 +1,4 @@
|
||||
Add again ``_PyCFunctionFastWithKeywords`` name, removed in Python 3.13
|
||||
alpha 4 by mistake. Keep the old private ``_PyCFunctionFastWithKeywords``
|
||||
name (Python 3.7) as an alias to the new public name
|
||||
``PyCFunctionFastWithKeywords`` (Python 3.13a4). Patch by Victor Stinner.
|
Loading…
Reference in New Issue
Block a user