[Python-checkins] cpython (3.4): Issue #21354: PyCFunction_New function is exposed by python DLL again.

andrew.svetlov python-checkins at python.org
Mon Apr 27 16:49:26 CEST 2015


https://hg.python.org/cpython/rev/69951573cb0e
changeset:   95819:69951573cb0e
branch:      3.4
parent:      95817:5850f0c17c34
user:        Andrew Svetlov <andrew.svetlov at gmail.com>
date:        Mon Apr 27 17:48:50 2015 +0300
summary:
  Issue #21354: PyCFunction_New function is exposed by python DLL again.

files:
  Misc/NEWS              |  2 ++
  Objects/methodobject.c |  2 +-
  2 files changed, 3 insertions(+), 1 deletions(-)


diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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 --git a/Objects/methodobject.c b/Objects/methodobject.c
--- a/Objects/methodobject.c
+++ b/Objects/methodobject.c
@@ -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);

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list