Skip to content

Commit

Permalink
pythongh-114626: Fix _PyCFunctionFastWithKeywords backward compat alias
Browse files Browse the repository at this point in the history
Keep the old private _PyCFunctionFastWithKeywords name as an alias to
the new public name PyCFunctionFastWithKeywords.

_PyCFunctionWithKeywords doesn't exist in Python 3.13a3, whereas
_PyCFunctionFastWithKeywords was removed in Python 3.13a4.
  • Loading branch information
vstinner committed Feb 16, 2024
1 parent 144eb56 commit ac463c8
Showing 1 changed file with 1 addition 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 comments on commit ac463c8

Please sign in to comment.