diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2019-05-28 23:45:32 (GMT) |
---|---|---|
committer | Carol Willing <carolcode@willingconsulting.com> | 2019-05-28 23:45:32 (GMT) |
commit | b76302ddd0896cb39ce69909349b53db6e7776e2 (patch) | |
tree | 5f9a80489decdb07f40e97cf618d62f0ce5b4930 /Doc/c-api | |
parent | 77f0ed7a42606d03ebfe48ab152caf0d796d6540 (diff) | |
download | cpython-b76302ddd0896cb39ce69909349b53db6e7776e2.zip cpython-b76302ddd0896cb39ce69909349b53db6e7776e2.tar.gz cpython-b76302ddd0896cb39ce69909349b53db6e7776e2.tar.bz2 |
bpo-36540: Documentation for PEP570 - Python positional only arguments (#13202)
* bpo-36540: Documentation for PEP570 - Python positional only arguments
* fixup! bpo-36540: Documentation for PEP570 - Python positional only arguments
* Update reference for compound statements
* Apply suggestions from Carol
Co-Authored-By: Carol Willing <carolcode@willingconsulting.com>
* Update Doc/tutorial/controlflow.rst
Co-Authored-By: Carol Willing <carolcode@willingconsulting.com>
* Add extra bullet point and minor edits
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/code.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/code.rst b/Doc/c-api/code.rst index fd3f691..e2b0b23 100644 --- a/Doc/c-api/code.rst +++ b/Doc/c-api/code.rst @@ -33,7 +33,7 @@ bound into a function. Return the number of free variables in *co*. -.. 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) +.. c:function:: PyCodeObject* PyCode_New(int argcount, int posonlyargcount, 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 |