summaryrefslogtreecommitdiff
path: root/Include/code.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/code.h')
-rw-r--r--Include/code.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Include/code.h b/Include/code.h
index 0167ad4a87..cbf00d8d01 100644
--- a/Include/code.h
+++ b/Include/code.h
@@ -75,6 +75,9 @@ PyAPI_FUNC(PyCodeObject *) PyCode_New(
PyAPI_FUNC(PyCodeObject *)
PyCode_NewEmpty(const char *filename, const char *funcname, int firstlineno);
+/* Return the line number associated with the specified bytecode index
+ in this code object. If you just need the line number of a frame,
+ use PyFrame_GetLineNumber() instead. */
PyAPI_FUNC(int) PyCode_Addr2Line(PyCodeObject *, int);
/* for internal use only */