https://github.com/python/cpython/commit/865c2d483abd46bf37a2147335b37e240372f965
commit: 865c2d483abd46bf37a2147335b37e240372f965
branch: 3.13
author: Miss Islington (bot) <[email protected]>
committer: StanFromIreland <[email protected]>
date: 2026-09-09T15:09:14Z
summary:

[3.13] gh-156233: Fix typos and code snippet errors in the docs (GH-156475) 
(#157222)

(cherry picked from commit 9f90a8659aa86bc203b7628611c79508d30e36b6)

Co-authored-by: Willy Bruns <[email protected]>

files:
M Doc/howto/logging-cookbook.rst
M Doc/howto/mro.rst
M Doc/library/logging.config.rst
M Doc/library/pdb.rst

diff --git a/Doc/howto/logging-cookbook.rst b/Doc/howto/logging-cookbook.rst
index e6ccb8038ca2d5a..f2f94833716b316 100644
--- a/Doc/howto/logging-cookbook.rst
+++ b/Doc/howto/logging-cookbook.rst
@@ -3912,7 +3912,7 @@ subclassed handler which looks something like this::
 
 You'll need to be familiar with RFC 5424 to fully understand the above code, 
and it
 may be that you have slightly different needs (e.g. for how you pass 
structural data
-to the log). Nevertheless, the above should be adaptable to your speciric 
needs. With
+to the log). Nevertheless, the above should be adaptable to your specific 
needs. With
 the above handler, you'd pass structured data using something like this::
 
     sd = {
diff --git a/Doc/howto/mro.rst b/Doc/howto/mro.rst
index 72cc311e30d669c..5007fa046b9c792 100644
--- a/Doc/howto/mro.rst
+++ b/Doc/howto/mro.rst
@@ -189,7 +189,7 @@ prescription:
   the tail of any of the other lists, then add it to the linearization
   of C and remove it from the lists in the merge, otherwise look at the
   head of the next list and take it, if it is a good head.  Then repeat
-  the operation until all the class are removed or it is impossible to
+  the operation until all the classes are removed or it is impossible to
   find good heads.  In this case, it is impossible to construct the
   merge, Python 2.3 will refuse to create the class C and will raise an
   exception.*
diff --git a/Doc/library/logging.config.rst b/Doc/library/logging.config.rst
index 96cca3073fec7e7..f1998d8f4823ff1 100644
--- a/Doc/library/logging.config.rst
+++ b/Doc/library/logging.config.rst
@@ -558,7 +558,7 @@ following configuration::
       'bar' : 'baz',
       'spam' : 99.9,
       'answer' : 42,
-      '.' {
+      '.' : {
         'foo': 'bar',
         'baz': 'bozz'
       }
diff --git a/Doc/library/pdb.rst b/Doc/library/pdb.rst
index 8f2981f31082efe..1430fe0608d2ddc 100644
--- a/Doc/library/pdb.rst
+++ b/Doc/library/pdb.rst
@@ -720,7 +720,7 @@ can be overridden by the local file.
         def inner(x):
             1 / x
 
-         out()
+        out()
 
    calling ``pdb.pm()`` will allow to move between exceptions::
 

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to