summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-01-17 00:29:01 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2017-01-17 00:29:01 (GMT)
commit3e1fad6913689f1cbb08657ee5f65439a4639303 (patch)
tree45f7051516a63cca0cfd39ad8b70f0830dc9f3a4 /Include
parentc0083fc47d7a03e2116036af2c3b33ad3d9583f6 (diff)
downloadcpython-3e1fad6913689f1cbb08657ee5f65439a4639303.zip
cpython-3e1fad6913689f1cbb08657ee5f65439a4639303.tar.gz
cpython-3e1fad6913689f1cbb08657ee5f65439a4639303.tar.bz2
Rename _PyArg_ParseStack to _PyArg_ParseStackAndKeywords
Issue #29286.
Diffstat (limited to 'Include')
-rw-r--r--Include/abstract.h4
-rw-r--r--Include/modsupport.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/Include/abstract.h b/Include/abstract.h
index d96e8a5..43bf251 100644
--- a/Include/abstract.h
+++ b/Include/abstract.h
@@ -171,7 +171,7 @@ PyAPI_FUNC(PyObject*) _PyStack_AsTupleSlice(
kwnames must only contains str strings, no subclass, and all keys must be
unique. kwnames is not checked, usually these checks are done before or
- later calling _PyStack_AsDict(). For example, _PyArg_ParseStack() raises an
+ later calling _PyStack_AsDict(). For example, _PyArg_ParseStackAndKeywords() raises an
error if a key is not a string. */
PyAPI_FUNC(PyObject *) _PyStack_AsDict(
PyObject **values,
@@ -185,7 +185,7 @@ PyAPI_FUNC(PyObject *) _PyStack_AsDict(
The stack uses borrowed references.
The type of keyword keys is not checked, these checks should be done
- later (ex: _PyArg_ParseStack). */
+ later (ex: _PyArg_ParseStackAndKeywords). */
PyAPI_FUNC(PyObject **) _PyStack_UnpackDict(
PyObject **args,
Py_ssize_t nargs,
diff --git a/Include/modsupport.h b/Include/modsupport.h
index 8306ae7..188f0b1 100644
--- a/Include/modsupport.h
+++ b/Include/modsupport.h
@@ -79,12 +79,12 @@ typedef struct _PyArg_Parser {
} _PyArg_Parser;
#ifdef PY_SSIZE_T_CLEAN
#define _PyArg_ParseTupleAndKeywordsFast _PyArg_ParseTupleAndKeywordsFast_SizeT
-#define _PyArg_ParseStack _PyArg_ParseStack_SizeT
+#define _PyArg_ParseStackAndKeywords _PyArg_ParseStackAndKeywords_SizeT
#define _PyArg_VaParseTupleAndKeywordsFast _PyArg_VaParseTupleAndKeywordsFast_SizeT
#endif
PyAPI_FUNC(int) _PyArg_ParseTupleAndKeywordsFast(PyObject *, PyObject *,
struct _PyArg_Parser *, ...);
-PyAPI_FUNC(int) _PyArg_ParseStack(PyObject **args, Py_ssize_t nargs, PyObject *kwnames,
+PyAPI_FUNC(int) _PyArg_ParseStackAndKeywords(PyObject **args, Py_ssize_t nargs, PyObject *kwnames,
struct _PyArg_Parser *, ...);
PyAPI_FUNC(int) _PyArg_VaParseTupleAndKeywordsFast(PyObject *, PyObject *,
struct _PyArg_Parser *, va_list);