changeset: 95819:69951573cb0e branch: 3.4 parent: 95817:5850f0c17c34 user: Andrew Svetlov date: Mon Apr 27 17:48:50 2015 +0300 files: Misc/NEWS Objects/methodobject.c description: Issue #21354: PyCFunction_New function is exposed by python DLL again. diff -r 5850f0c17c34 -r 69951573cb0e Misc/NEWS --- a/Misc/NEWS Mon Apr 27 13:53:28 2015 +0300 +++ b/Misc/NEWS Mon Apr 27 17:48:50 2015 +0300 @@ -34,6 +34,8 @@ - Issue #24044: Fix possible null pointer dereference in list.sort in out of memory conditions. +- Issue #21354: PyCFunction_New function is exposed by python DLL again. + Library ------- diff -r 5850f0c17c34 -r 69951573cb0e Objects/methodobject.c --- a/Objects/methodobject.c Mon Apr 27 13:53:28 2015 +0300 +++ b/Objects/methodobject.c Mon Apr 27 17:48:50 2015 +0300 @@ -16,7 +16,7 @@ /* undefine macro trampoline to PyCFunction_NewEx */ #undef PyCFunction_New -PyObject * +PyAPI_FUNC(PyObject *) PyCFunction_New(PyMethodDef *ml, PyObject *self) { return PyCFunction_NewEx(ml, self, NULL);