]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #12949: Document the kwonlyargcount argument for the PyCode_New C API function.
authorMeador Inge <meadori@gmail.com>
Fri, 20 Jan 2012 04:06:31 +0000 (22:06 -0600)
committerMeador Inge <meadori@gmail.com>
Fri, 20 Jan 2012 04:06:31 +0000 (22:06 -0600)
Doc/c-api/code.rst
Misc/NEWS

index 52c42453b0f96211ab8be3c7b3467b860cad97cf..6932bb1964617e178677f919f4a226c2d1f77d07 100644 (file)
@@ -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
index ed6c1e0340f2ef143324970b7091ef3a87afb9ad..53c258b4ad22911c12f4c9ce495af623f4333f02 100644 (file)
--- 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.