From: Meador Inge Date: Fri, 20 Jan 2012 04:06:31 +0000 (-0600) Subject: Issue #12949: Document the kwonlyargcount argument for the PyCode_New C API function. X-Git-Tag: v3.2.3rc1~149 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a3443d985e84a052a45e93afa7759eb6776b7fb4;p=thirdparty%2FPython%2Fcpython.git Issue #12949: Document the kwonlyargcount argument for the PyCode_New C API function. --- diff --git a/Doc/c-api/code.rst b/Doc/c-api/code.rst index 52c42453b0f9..6932bb196461 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 diff --git a/Misc/NEWS b/Misc/NEWS index ed6c1e0340f2..53c258b4ad22 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -418,6 +418,9 @@ Extension Modules Documentation ------------- +- Issue #12949: Document the kwonlyargcount argument for the PyCode_New + C API function. + - Issue #2134: The tokenize documentation has been clarified to explain why all operator and delimiter tokens are treated as token.OP tokens.