[Python-checkins] cpython (3.2): Issue #12949: Document the kwonlyargcount argument for the PyCode_New C API
meador.inge
python-checkins at python.org
Fri Jan 20 05:28:46 CET 2012
http://hg.python.org/cpython/rev/b22a35c14a91
changeset: 74535:b22a35c14a91
branch: 3.2
parent: 74530:d6e53d1f46eb
user: Meador Inge <meadori at gmail.com>
date: Thu Jan 19 22:06:31 2012 -0600
summary:
Issue #12949: Document the kwonlyargcount argument for the PyCode_New C API function.
files:
Doc/c-api/code.rst | 2 +-
Misc/NEWS | 3 +++
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/Doc/c-api/code.rst b/Doc/c-api/code.rst
--- a/Doc/c-api/code.rst
+++ b/Doc/c-api/code.rst
@@ -35,7 +35,7 @@
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
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -418,6 +418,9 @@
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.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list