diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-06 06:50:03 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-06 06:50:03 (GMT) |
commit | ec39756960def5fdd8cb0ae191429f2f8e229f55 (patch) | |
tree | adb8bb87ed393db602face59929660b968f452e5 /Objects/funcobject.c | |
parent | 72783056983f216104087b6c49d85ea273bf67c4 (diff) | |
parent | 48842714b948fa239392ddd7e207151d5fcb8bc7 (diff) | |
download | cpython-ec39756960def5fdd8cb0ae191429f2f8e229f55.zip cpython-ec39756960def5fdd8cb0ae191429f2f8e229f55.tar.gz cpython-ec39756960def5fdd8cb0ae191429f2f8e229f55.tar.bz2 |
Issue #22570: Renamed Py_SETREF to Py_XSETREF.
Diffstat (limited to 'Objects/funcobject.c')
-rw-r--r-- | Objects/funcobject.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/Objects/funcobject.c b/Objects/funcobject.c index 2967634..c5f1a0a 100644 --- a/Objects/funcobject.c +++ b/Objects/funcobject.c @@ -127,7 +127,7 @@ PyFunction_SetDefaults(PyObject *op, PyObject *defaults) PyErr_SetString(PyExc_SystemError, "non-tuple default args"); return -1; } - Py_SETREF(((PyFunctionObject *)op)->func_defaults, defaults); + Py_XSETREF(((PyFunctionObject *)op)->func_defaults, defaults); return 0; } @@ -158,7 +158,7 @@ PyFunction_SetKwDefaults(PyObject *op, PyObject *defaults) "non-dict keyword only default args"); return -1; } - Py_SETREF(((PyFunctionObject *)op)->func_kwdefaults, defaults); + Py_XSETREF(((PyFunctionObject *)op)->func_kwdefaults, defaults); return 0; } @@ -190,7 +190,7 @@ PyFunction_SetClosure(PyObject *op, PyObject *closure) closure->ob_type->tp_name); return -1; } - Py_SETREF(((PyFunctionObject *)op)->func_closure, closure); + Py_XSETREF(((PyFunctionObject *)op)->func_closure, closure); return 0; } @@ -221,7 +221,7 @@ PyFunction_SetAnnotations(PyObject *op, PyObject *annotations) "non-dict annotations"); return -1; } - Py_SETREF(((PyFunctionObject *)op)->func_annotations, annotations); + Py_XSETREF(((PyFunctionObject *)op)->func_annotations, annotations); return 0; } @@ -270,7 +270,7 @@ func_set_code(PyFunctionObject *op, PyObject *value) return -1; } Py_INCREF(value); - Py_SETREF(op->func_code, value); + Py_XSETREF(op->func_code, value); return 0; } @@ -292,7 +292,7 @@ func_set_name(PyFunctionObject *op, PyObject *value) return -1; } Py_INCREF(value); - Py_SETREF(op->func_name, value); + Py_XSETREF(op->func_name, value); return 0; } @@ -314,7 +314,7 @@ func_set_qualname(PyFunctionObject *op, PyObject *value) return -1; } Py_INCREF(value); - Py_SETREF(op->func_qualname, value); + Py_XSETREF(op->func_qualname, value); return 0; } @@ -342,7 +342,7 @@ func_set_defaults(PyFunctionObject *op, PyObject *value) return -1; } Py_XINCREF(value); - Py_SETREF(op->func_defaults, value); + Py_XSETREF(op->func_defaults, value); return 0; } @@ -370,7 +370,7 @@ func_set_kwdefaults(PyFunctionObject *op, PyObject *value) return -1; } Py_XINCREF(value); - Py_SETREF(op->func_kwdefaults, value); + Py_XSETREF(op->func_kwdefaults, value); return 0; } @@ -400,7 +400,7 @@ func_set_annotations(PyFunctionObject *op, PyObject *value) return -1; } Py_XINCREF(value); - Py_SETREF(op->func_annotations, value); + Py_XSETREF(op->func_annotations, value); return 0; } @@ -504,7 +504,7 @@ func_new(PyTypeObject* type, PyObject* args, PyObject* kw) if (name != Py_None) { Py_INCREF(name); - Py_SETREF(newfunc->func_name, name); + Py_XSETREF(newfunc->func_name, name); } if (defaults != Py_None) { Py_INCREF(defaults); |