Skip to content

Commit

Permalink
00420: pythongh-114626: Add again _PyCFunctionFastWithKeywords name (p…
Browse files Browse the repository at this point in the history
…ythonGH-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.
  • Loading branch information
vstinner authored and befeleme committed Feb 21, 2024
1 parent 3357fac commit d9d7e46
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Include/methodobject.h
Expand Up @@ -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.
//
Expand Down
@@ -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.

0 comments on commit d9d7e46

Please sign in to comment.