summaryrefslogtreecommitdiffstats
path: root/Include/ceval.h
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-11-29 17:47:56 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-11-29 17:47:56 (GMT)
commitebea9988e0808cab8736f100fc480d536e68f930 (patch)
treef667dc2778eb2a3041c965aba94f2bfa99146c9f /Include/ceval.h
parent356ae170ef47af5561d0c39be56ef32b76d704a0 (diff)
downloadcpython-ebea9988e0808cab8736f100fc480d536e68f930.zip
cpython-ebea9988e0808cab8736f100fc480d536e68f930.tar.gz
cpython-ebea9988e0808cab8736f100fc480d536e68f930.tar.bz2
Uniformize argument names of "call" functions
* Callable object: callable, o, callable_object => func * Object for method calls: o => obj * Method name: name or nameid => method Cleanup also the C code: * Don't initialize variables to NULL if they are not used before their first assignement * Add braces for readability
Diffstat (limited to 'Include/ceval.h')
-rw-r--r--Include/ceval.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/ceval.h b/Include/ceval.h
index 4222969..5dface2 100644
--- a/Include/ceval.h
+++ b/Include/ceval.h
@@ -14,10 +14,10 @@ PyAPI_FUNC(PyObject *) PyEval_CallObjectWithKeywords(
#define PyEval_CallObject(func,arg) \
PyEval_CallObjectWithKeywords(func, arg, (PyObject *)NULL)
-PyAPI_FUNC(PyObject *) PyEval_CallFunction(PyObject *obj,
+PyAPI_FUNC(PyObject *) PyEval_CallFunction(PyObject *func,
const char *format, ...);
PyAPI_FUNC(PyObject *) PyEval_CallMethod(PyObject *obj,
- const char *methodname,
+ const char *method,
const char *format, ...);
#ifndef Py_LIMITED_API