[3.13] Fix typos and grammar errors across documentation (GH-144709) (#144804)

(cherry picked from commit 3718f4be60)

Co-authored-by: Ronald Eddy Jr <ronald_eddy@yahoo.com>
This commit is contained in:
Stan Ulbrych 2026-02-17 12:56:29 +00:00 committed by GitHub
parent 6579e03813
commit ea07223716
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 66 additions and 67 deletions

View file

@ -420,7 +420,7 @@ of the class::
'Buddy'
As discussed in :ref:`tut-object`, shared data can have possibly surprising
effects with involving :term:`mutable` objects such as lists and dictionaries.
effects involving :term:`mutable` objects such as lists and dictionaries.
For example, the *tricks* list in the following code should not be used as a
class variable because just a single list would be shared by all *Dog*
instances::

View file

@ -155,8 +155,8 @@ that takes an iterable is :func:`sum`::
6
Later we will see more functions that return iterables and take iterables as
arguments. In chapter :ref:`tut-structures`, we will discuss in more detail about
:func:`list`.
arguments. In chapter :ref:`tut-structures`, we will discuss :func:`list` in more
detail.
.. _tut-break:
@ -440,7 +440,7 @@ Several other key features of this statement:
``False`` and ``None`` are compared by identity.
- Patterns may use named constants. These must be dotted names
to prevent them from being interpreted as capture variable::
to prevent them from being interpreted as capture variables::
from enum import Enum
class Color(Enum):
@ -1106,7 +1106,7 @@ Intermezzo: Coding Style
Now that you are about to write longer, more complex pieces of Python, it is a
good time to talk about *coding style*. Most languages can be written (or more
concise, *formatted*) in different styles; some are more readable than others.
concisely, *formatted*) in different styles; some are more readable than others.
Making it easy for others to read your code is always a good idea, and adopting
a nice coding style helps tremendously for that.

View file

@ -68,6 +68,6 @@ already contain the solution for your problem.
.. rubric:: Footnotes
.. [#] "Cheese Shop" is a Monty Python's sketch: a customer enters a cheese shop,
.. [#] "Cheese Shop" is a Monty Python sketch: a customer enters a cheese shop,
but whatever cheese he asks for, the clerk says it's missing.