https://github.com/python/cpython/commit/9f90a8659aa86bc203b7628611c79508d30e36b6
commit: 9f90a8659aa86bc203b7628611c79508d30e36b6
branch: main
author: Willy Bruns <[email protected]>
committer: StanFromIreland <[email protected]>
date: 2026-09-09T15:58:41+01:00
summary:
gh-156233: Fix typos and code snippet errors in the docs (#156475)
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 2ff221cf258eda5..687a0c516f67173 100644
--- a/Doc/howto/logging-cookbook.rst
+++ b/Doc/howto/logging-cookbook.rst
@@ -3920,7 +3920,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 3842c1e9d477d29..29a001f69661ae9 100644
--- a/Doc/library/logging.config.rst
+++ b/Doc/library/logging.config.rst
@@ -555,7 +555,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 bfe017a5c8fe1c7..6a401a1af7eba38 100644
--- a/Doc/library/pdb.rst
+++ b/Doc/library/pdb.rst
@@ -834,7 +834,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]