From 8a73699e62ff70574fdc7ba33745e2ce22002355 Mon Sep 17 00:00:00 2001 From: Galen Seilis Date: Wed, 16 Oct 2024 18:48:02 -0700 Subject: [PATCH] Update pdb.rst x unclear phrasing in exception traceback documentation Description: Revised the sentence from: "If no traceback is given, it uses the one of the exception that is currently being handled." to: "If no traceback is given, it uses one of the exceptions that is currently being handled." The original phrasing was grammatically awkward and unclear due to the use of "the one of the exception", which incorrectly implied a specific, pre-identified exception. The revision eliminates this ambiguity by changing it to "one of the exceptions", which makes it clear that the traceback is selected from multiple possible exceptions being handled. This improves readability and accuracy, ensuring the documentation is easier to understand. --- Doc/library/pdb.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/pdb.rst b/Doc/library/pdb.rst index 6c099b22b38c21..f72a356aab30f1 100644 --- a/Doc/library/pdb.rst +++ b/Doc/library/pdb.rst @@ -182,7 +182,7 @@ slightly different way: .. function:: post_mortem(traceback=None) Enter post-mortem debugging of the given *traceback* object. If no - *traceback* is given, it uses the one of the exception that is currently + *traceback* is given, it uses one of the exceptions that is currently being handled (an exception must be being handled if the default is to be used).