cpython: 71afeb15f617 (original) (raw)
Mercurial > cpython
changeset 101285:71afeb15f617
merge 3.5 (#26986) [#26986]
Benjamin Peterson benjamin@python.org | |
---|---|
date | Mon, 09 May 2016 23:44:30 -0700 |
parents | 694dadd9f7bd(current diff)bfc4c57a0986(diff) |
children | 909099686e6e |
files | |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-)[+] [-] Doc/c-api/function.rst 5 |
line wrap: on
line diff
--- a/Doc/c-api/function.rst +++ b/Doc/c-api/function.rst @@ -34,8 +34,9 @@ There are a few functions specific to Py Return a new function object associated with the code object code. globals must be a dictionary with the global variables accessible to the function.
- The function's docstring, name and module are retrieved from the code
- object, the argument defaults and closure are set to NULL.
- The function's docstring and name are retrieved from the code object. module
- is retrieved from globals. The argument defaults, annotations and closure are
- set to NULL. qualname is set to the same value as the function's name.
.. c:function:: PyObject* PyFunction_NewWithQualName(PyObject *code, PyObject *globals, PyObject *qualname)