Skip to content

Commit dd94f52

Browse files
Update Doc/c-api/exceptions.rst
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
1 parent 754eb27 commit dd94f52

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Doc/c-api/exceptions.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,9 @@ For convenience, some of these functions will always return a
343343
.. c:function:: PyObject *PyErr_ProgramText(const char *filename, int lineno)
344344
345345
Similar to :c:func:`PyErr_ProgramTextObject`, but *filename* is a
346-
:c:expr:`const char *` UTF-8 encoded string instead of a Python object
347-
reference.
346+
:c:expr:`const char *`, which is decoded with the
347+
:term:`filesystem-encoding-and-error-handler`, instead of a
348+
Python object reference.
348349
349350
350351
Issuing warnings

0 commit comments

Comments
 (0)