summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorMeador Inge <meadori@gmail.com>2012-01-20 04:24:55 (GMT)
committerMeador Inge <meadori@gmail.com>2012-01-20 04:24:55 (GMT)
commit2396c0a28fec1e810b5f92a6999c7d9de8538a81 (patch)
treee1464ad7b06c1cc909cb9896b5230eff683d4828 /Doc
parent2dd254d17a27ca6b7aea7ff2cd6883a6edf9d239 (diff)
parenta3443d985e84a052a45e93afa7759eb6776b7fb4 (diff)
downloadcpython-2396c0a28fec1e810b5f92a6999c7d9de8538a81.zip
cpython-2396c0a28fec1e810b5f92a6999c7d9de8538a81.tar.gz
cpython-2396c0a28fec1e810b5f92a6999c7d9de8538a81.tar.bz2
Issue #12949: Document the kwonlyargcount argument for the PyCode_New C API function.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/c-api/code.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/code.rst b/Doc/c-api/code.rst
index 52c4245..6932bb1 100644
--- a/Doc/c-api/code.rst
+++ b/Doc/c-api/code.rst
@@ -35,7 +35,7 @@ bound into a function.
Return the number of free variables in *co*.
-.. c:function:: PyCodeObject *PyCode_New(int argcount, int nlocals, int stacksize, int flags, PyObject *code, PyObject *consts, PyObject *names, PyObject *varnames, PyObject *freevars, PyObject *cellvars, PyObject *filename, PyObject *name, int firstlineno, PyObject *lnotab)
+.. c:function:: PyCodeObject *PyCode_New(int argcount, int kwonlyargcount, int nlocals, int stacksize, int flags, PyObject *code, PyObject *consts, PyObject *names, PyObject *varnames, PyObject *freevars, PyObject *cellvars, PyObject *filename, PyObject *name, int firstlineno, PyObject *lnotab)
Return a new code object. If you need a dummy code object to
create a frame, use :c:func:`PyCode_NewEmpty` instead. Calling