Skip to content

Commit 26c2a49

Browse files
[3.13] gh-141004: Document PyErr_WarnExplicitFormat (GH-141187) (GH-141203)
gh-141004: Document `PyErr_WarnExplicitFormat` (GH-141187) (cherry picked from commit 9420795) Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
1 parent 09cc93d commit 26c2a49

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)