From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Tue, 2 Jun 2026 09:22:17 +0000 (+0200) Subject: [3.15] Fix two typos in 'Exception Handling' C-API documentation (GH-150674) (#150772) X-Git-Tag: v3.15.0b2~11 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=0472179937c8cd843b384a8ce73958c20d0a6877;p=thirdparty%2FPython%2Fcpython.git [3.15] Fix two typos in 'Exception Handling' C-API documentation (GH-150674) (#150772) (cherry picked from commit cee3327b9264a653cdbd2f9bb1ffa74a95be66e9) Co-authored-by: Manoj K M --- diff --git a/Doc/c-api/exceptions.rst b/Doc/c-api/exceptions.rst index fd9ea6272df7..f3f408c400be 100644 --- a/Doc/c-api/exceptions.rst +++ b/Doc/c-api/exceptions.rst @@ -412,7 +412,7 @@ an error value). .. c:function:: int PyErr_WarnFormat(PyObject *category, Py_ssize_t stack_level, const char *format, ...) - Function similar to :c:func:`PyErr_WarnEx`, but use + Function similar to :c:func:`PyErr_WarnEx`, but uses :c:func:`PyUnicode_FromFormat` to format the warning message. *format* is an ASCII-encoded string. @@ -1392,7 +1392,7 @@ Tracebacks This function will return ``NULL`` on success, or an error message on error. - This function is meant to debug debug situations such as segfaults, fatal + This function is meant to debug situations such as segfaults, fatal errors, and similar. It calls :c:func:`PyUnstable_DumpTraceback` for each thread. It only writes the tracebacks of the first *max_threads* threads, further output is truncated with the line ``...``. If *max_threads* is 0, the