changeset: 74536:218b167ff521 parent: 74534:8502a9236c2e parent: 74535:b22a35c14a91 user: Meador Inge date: Thu Jan 19 22:24:55 2012 -0600 files: Misc/NEWS description: Issue #12949: Document the kwonlyargcount argument for the PyCode_New C API function. diff -r 8502a9236c2e -r 218b167ff521 Doc/c-api/code.rst --- a/Doc/c-api/code.rst Fri Jan 20 02:24:18 2012 +0100 +++ b/Doc/c-api/code.rst Thu Jan 19 22:24:55 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 diff -r 8502a9236c2e -r 218b167ff521 Misc/NEWS --- a/Misc/NEWS Fri Jan 20 02:24:18 2012 +0100 +++ b/Misc/NEWS Thu Jan 19 22:24:55 2012 -0600 @@ -2100,6 +2100,9 @@ Documentation ------------- +- Issue #12949: Document the kwonlyargcount argument for the PyCode_New + C API function. + - Issue #13513: Fix io.IOBase documentation to correctly link to the io.IOBase.readline method instead of the readline module.

AltStyle によって変換されたページ (->オリジナル) /