Skip to content

Commit 196f151

Browse files
pythongh-141004: Document PyErr_RangedSyntaxLocationObject (python#141521)
PyErr_RangedSyntaxLocationObject
1 parent b2b68d4 commit 196f151

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Doc/c-api/exceptions.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,14 @@ For convenience, some of these functions will always return a
309309
.. versionadded:: 3.4
310310
311311
312+
.. c:function:: void PyErr_RangedSyntaxLocationObject(PyObject *filename, int lineno, int col_offset, int end_lineno, int end_col_offset)
313+
314+
Similar to :c:func:`PyErr_SyntaxLocationObject`, but also sets the
315+
*end_lineno* and *end_col_offset* information for the current exception.
316+
317+
.. versionadded:: 3.10
318+
319+
312320
.. c:function:: void PyErr_SyntaxLocationEx(const char *filename, int lineno, int col_offset)
313321
314322
Like :c:func:`PyErr_SyntaxLocationObject`, but *filename* is a byte string

0 commit comments

Comments
 (0)