Mercurial > cpython-lru_cache-weakref
diff Doc/c-api/code.rst @ 74535:b22a35c14a91 3.2
Issue #12949: Document the kwonlyargcount argument for the PyCode_New C API function.
| author | Meador Inge <meadori@gmail.com> |
|---|---|
| date | Thu, 19 Jan 2012 22:06:31 -0600 |
| parents | 9076e4220fa4 |
| children | 90f0dd118aa4 |
line wrap: on
line diff
--- a/Doc/c-api/code.rst Thu Jan 19 22:23:00 2012 +0100 +++ b/Doc/c-api/code.rst Thu Jan 19 22:06:31 2012 -0600 @@ -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
