[Python-checkins] bpo-30486: Make cell_set_contents() symbol private (#3668)

Victor Stinner webhook-mailer at python.org
Wed Sep 20 09:54:21 EDT 2017


https://github.com/python/cpython/commit/0ad05c32cc41d4c21bfd78b9ffead519ead475a2
commit: 0ad05c32cc41d4c21bfd78b9ffead519ead475a2
branch: master
author: Victor Stinner <victor.stinner at gmail.com>
committer: GitHub <noreply at github.com>
date: 2017-09-20T06:54:13-07:00
summary:

bpo-30486: Make cell_set_contents() symbol private (#3668)

Don't export the cell_set_contents() symbol in the C API.

files:
M Objects/cellobject.c

diff --git a/Objects/cellobject.c b/Objects/cellobject.c
index 8f16f07d7b3..af19229c4b6 100644
--- a/Objects/cellobject.c
+++ b/Objects/cellobject.c
@@ -142,7 +142,7 @@ cell_get_contents(PyCellObject *op, void *closure)
     return op->ob_ref;
 }
 
-int
+static int
 cell_set_contents(PyCellObject *op, PyObject *obj)
 {
     Py_XINCREF(obj);



More information about the Python-checkins mailing list