summaryrefslogtreecommitdiffstats
path: root/Objects/abstract.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-09-12 11:37:07 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-09-12 11:37:07 (GMT)
commit57f91ac95aec1922ba104019a81a6508485862c4 (patch)
treecbf2300bab2d6c2bcb6f0b08b30be4ce2290c4e2 /Objects/abstract.c
parentb8d768b0199c55d408f5c8b86d14555aa7be9f98 (diff)
downloadcpython-57f91ac95aec1922ba104019a81a6508485862c4.zip
cpython-57f91ac95aec1922ba104019a81a6508485862c4.tar.gz
cpython-57f91ac95aec1922ba104019a81a6508485862c4.tar.bz2
Document kwnames in _PyObject_FastCallKeywords() and _PyStack_AsDict()
Issue #27213.
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r--Objects/abstract.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c
index a929be9..17da5c9 100644
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -2457,6 +2457,9 @@ _PyObject_FastCallKeywords(PyObject *func, PyObject **stack, Py_ssize_t nargs,
assert(nargs >= 0);
assert(kwnames == NULL || PyTuple_CheckExact(kwnames));
assert((nargs == 0 && nkwargs == 0) || stack != NULL);
+ /* kwnames must only contains str strings, no subclass, and all keys must
+ be unique: these are implemented in Python/ceval.c and
+ _PyArg_ParseStack(). */
if (PyFunction_Check(func)) {
return _PyFunction_FastCallKeywords(func, stack, nargs, kwnames);