Skip to content

Commit b2784b3

Browse files
committed
Issue #21354: PyCFunction_New function is exposed by python DLL again.
1 parent 986db09 commit b2784b3

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ Core and Builtins
3434
- Issue #24044: Fix possible null pointer dereference in list.sort in out of
3535
memory conditions.
3636

37+
- Issue #21354: PyCFunction_New function is exposed by python DLL again.
38+
3739
Library
3840
-------
3941

Objects/methodobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ static int numfree = 0;
1616
/* undefine macro trampoline to PyCFunction_NewEx */
1717
#undef PyCFunction_New
1818

19-
PyObject *
19+
PyAPI_FUNC(PyObject *)
2020
PyCFunction_New(PyMethodDef *ml, PyObject *self)
2121
{
2222
return PyCFunction_NewEx(ml, self, NULL);

0 commit comments

Comments
 (0)