mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Prevent namespace pollution, add static for internal functions
This commit is contained in:
parent
04f58760d7
commit
fddc469876
2 changed files with 5 additions and 5 deletions
|
@ -1116,7 +1116,7 @@ static PyMemberDef property_members[] = {
|
|||
PyDoc_STRVAR(getter_doc,
|
||||
"Descriptor to change the getter on a property.");
|
||||
|
||||
PyObject *
|
||||
static PyObject *
|
||||
property_getter(PyObject *self, PyObject *getter)
|
||||
{
|
||||
return property_copy(self, getter, NULL, NULL, NULL);
|
||||
|
@ -1126,7 +1126,7 @@ property_getter(PyObject *self, PyObject *getter)
|
|||
PyDoc_STRVAR(setter_doc,
|
||||
"Descriptor to change the setter on a property.");
|
||||
|
||||
PyObject *
|
||||
static PyObject *
|
||||
property_setter(PyObject *self, PyObject *setter)
|
||||
{
|
||||
return property_copy(self, NULL, setter, NULL, NULL);
|
||||
|
@ -1136,7 +1136,7 @@ property_setter(PyObject *self, PyObject *setter)
|
|||
PyDoc_STRVAR(deleter_doc,
|
||||
"Descriptor to change the deleter on a property.");
|
||||
|
||||
PyObject *
|
||||
static PyObject *
|
||||
property_deleter(PyObject *self, PyObject *deleter)
|
||||
{
|
||||
return property_copy(self, NULL, NULL, deleter, NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue