Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e7041fa + 3872350 commit a4dfbe6Copy full SHA for a4dfbe6
1 file changed
Doc/c-api/function.rst
@@ -34,8 +34,9 @@ There are a few functions specific to Python functions.
34
Return a new function object associated with the code object *code*. *globals*
35
must be a dictionary with the global variables accessible to the function.
36
37
- The function's docstring, name and *__module__* are retrieved from the code
38
- 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
39
+ set to *NULL*. *__qualname__* is set to the same value as the function's name.
40
41
42
.. c:function:: PyObject* PyFunction_NewWithQualName(PyObject *code, PyObject *globals, PyObject *qualname)
0 commit comments