diff Include/funcobject.h @ 73738:e1dbc72bd97f

PEP 3155 / issue #13448: Qualified name for classes and functions.
author Antoine Pitrou <solipsis@pitrou.net>
date Fri, 25 Nov 2011 18:56:07 +0100
parents 62b61abd02b8
children
line wrap: on
line diff
--- a/Include/funcobject.h	Fri Nov 25 18:03:09 2011 +0100
+++ b/Include/funcobject.h	Fri Nov 25 18:56:07 2011 +0100
@@ -31,6 +31,7 @@
     PyObject *func_weakreflist;	/* List of weak references */
     PyObject *func_module;	/* The __module__ attribute, can be anything */
     PyObject *func_annotations;	/* Annotations, a dict or NULL */
+    PyObject *func_qualname;    /* The qualified name */
 
     /* Invariant:
      *     func_closure contains the bindings for func_code->co_freevars, so
@@ -44,6 +45,7 @@
 #define PyFunction_Check(op) (Py_TYPE(op) == &PyFunction_Type)
 
 PyAPI_FUNC(PyObject *) PyFunction_New(PyObject *, PyObject *);
+PyAPI_FUNC(PyObject *) PyFunction_NewWithQualName(PyObject *, PyObject *, PyObject *);
 PyAPI_FUNC(PyObject *) PyFunction_GetCode(PyObject *);
 PyAPI_FUNC(PyObject *) PyFunction_GetGlobals(PyObject *);
 PyAPI_FUNC(PyObject *) PyFunction_GetModule(PyObject *);