]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix two typos in 'Exception Handling' C-API documentation (#150674)
authorManoj K M <manojkm24dev@gmail.com>
Tue, 2 Jun 2026 09:14:13 +0000 (14:44 +0530)
committerGitHub <noreply@github.com>
Tue, 2 Jun 2026 09:14:13 +0000 (10:14 +0100)
Doc/c-api/exceptions.rst

index fd9ea6272df7d84ea95b4b77499d78c46b24a019..f3f408c400bed08e05cb943d0cef34e2d2447511 100644 (file)
@@ -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