Skip to content

Commit 9420795

Browse files
gh-141004: Document PyErr_WarnExplicitFormat (GH-141187)
1 parent 7af9b53 commit 9420795

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Doc/c-api/exceptions.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,15 @@ an error value).
394394
.. versionadded:: 3.2
395395
396396
397+
.. c:function:: int PyErr_WarnExplicitFormat(PyObject *category, const char *filename, int lineno, const char *module, PyObject *registry, const char *format, ...)
398+
399+
Similar to :c:func:`PyErr_WarnExplicit`, but uses
400+
:c:func:`PyUnicode_FromFormat` to format the warning message. *format* is
401+
an ASCII-encoded string.
402+
403+
.. versionadded:: 3.2
404+
405+
397406
.. c:function:: int PyErr_ResourceWarning(PyObject *source, Py_ssize_t stack_level, const char *format, ...)
398407
399408
Function similar to :c:func:`PyErr_WarnFormat`, but *category* is

0 commit comments

Comments
 (0)