summaryrefslogtreecommitdiffstats
path: root/Doc/c-api
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-11-25 17:56:07 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-11-25 17:56:07 (GMT)
commit86a36b500a7f7581194382ce4df914e4bb487873 (patch)
tree0d83f90f9a14d40d3559ae188c203e9c8941c6db /Doc/c-api
parent0e86a5842d0fadff37c299e8a1c03535c6727b19 (diff)
downloadcpython-86a36b500a7f7581194382ce4df914e4bb487873.zip
cpython-86a36b500a7f7581194382ce4df914e4bb487873.tar.gz
cpython-86a36b500a7f7581194382ce4df914e4bb487873.tar.bz2
PEP 3155 / issue #13448: Qualified name for classes and functions.
Diffstat (limited to 'Doc/c-api')
-rw-r--r--Doc/c-api/function.rst10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/c-api/function.rst b/Doc/c-api/function.rst
index 31805fd..ad98322 100644
--- a/Doc/c-api/function.rst
+++ b/Doc/c-api/function.rst
@@ -38,6 +38,16 @@ There are a few functions specific to Python functions.
object, the argument defaults and closure are set to *NULL*.
+.. c:function:: PyObject* PyFunction_NewWithQualName(PyObject *code, PyObject *globals, PyObject *qualname)
+
+ As :c:func:`PyFunction_New`, but also allows to set the function object's
+ ``__qualname__`` attribute. *qualname* should be a unicode object or NULL;
+ if NULL, the ``__qualname__`` attribute is set to the same value as its
+ ``__name__`` attribute.
+
+ .. versionadded:: 3.3
+
+
.. c:function:: PyObject* PyFunction_GetCode(PyObject *op)
Return the code object associated with the function object *op*.