From cb570231cd666b542669fe7b2ed48aa0132460bb Mon Sep 17 00:00:00 2001
From: William Bruns
Date: Thu, 27 Aug 2026 15:18:04 +0000
Subject: [PATCH] Fix a couple of typos and a few code snippet errors in the
Python documentation
---
Doc/howto/logging-cookbook.rst | 2 +-
Doc/howto/mro.rst | 2 +-
Doc/library/logging.config.rst | 2 +-
Doc/library/pdb.rst | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Doc/howto/logging-cookbook.rst b/Doc/howto/logging-cookbook.rst
index 2ff221cf258eda..687a0c516f6717 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 72cc311e30d669..5007fa046b9c79 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 3842c1e9d477d2..29a001f69661ae 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 bfe017a5c8fe1c..6a401a1af7eba3 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::