https://github.com/python/cpython/commit/11bf622e22586b0e865574c4ca41452acf4b4601 commit: 11bf622e22586b0e865574c4ca41452acf4b4601 branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: StanFromIreland <[email protected]> date: 2026-09-09T15:07:53Z summary:
[3.14] gh-156233: Fix typos and code snippet errors in the docs (GH-156475) (#157221) (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 39a7b41c755097e..a7e410c46b9c95b 100644 --- a/Doc/howto/logging-cookbook.rst +++ b/Doc/howto/logging-cookbook.rst @@ -3925,7 +3925,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 6709062dfca72b9..8a91faedc4ea0bd 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 e7dd2e5524abca2..abd38acad681741 100644 --- a/Doc/library/pdb.rst +++ b/Doc/library/pdb.rst @@ -833,7 +833,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]
