]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix some typos in various doc files (GH-132589)
authorYongzi Li <1538321957@qq.com>
Wed, 16 Apr 2025 18:11:47 +0000 (02:11 +0800)
committerGitHub <noreply@github.com>
Wed, 16 Apr 2025 18:11:47 +0000 (18:11 +0000)
InternalDocs/parser.md
Misc/NEWS.d/3.14.0a1.rst
Misc/NEWS.d/3.14.0a2.rst
Misc/NEWS.d/3.14.0a4.rst
Misc/NEWS.d/3.14.0a6.rst
Tools/wasm/README.md

index be47efe24356d40b7ea3520c0376e29d1cb9e1b4..1d0ffe6d40d078a0b6e2297392e16e49e0400bc8 100644 (file)
@@ -97,7 +97,7 @@ Consequences of the ordered choice operator
 -------------------------------------------
 
 Although PEG may look like EBNF, its meaning is quite different. The fact
-that the alternatives are ordered in a PEG grammer (which is at the core of
+that the alternatives are ordered in a PEG grammar (which is at the core of
 how PEG parsers work) has deep consequences, other than removing ambiguity.
 
 If a rule has two alternatives and the first of them succeeds, the second one is
index efeba0ac1ffe2f5b72eb60564af8ae6c8de35d4c..98639f0d3505d58fc73301c9e491c00a6f9d432d 100644 (file)
@@ -3586,7 +3586,7 @@ atomic types.
 
 Add *doc* parameter to :func:`dataclasses.field`, so it can be stored and
 shown as a documentation / metadata. If ``@dataclass(slots=True)`` is used,
-then the supplied string is availabl in the :attr:`~object.__slots__` dict.
+then the supplied string is available in the :attr:`~object.__slots__` dict.
 Otherwise, the supplied string is only available in the corresponding
 :class:`dataclasses.Field` object.
 
@@ -4184,7 +4184,7 @@ display REPL ``help()``.
 .. nonce: aFqNAB
 .. section: Core and Builtins
 
-Fix reading and decoding a line from the source file witn non-UTF-8 encoding
+Fix reading and decoding a line from the source file with non-UTF-8 encoding
 for syntax errors raised in the compiler.
 
 ..
index d82ec98b7a3c8798ef08ea5d0d3f4c4c67aae5e4..7405a1344a9fa61898b0780adaba592e74c68f96 100644 (file)
@@ -310,7 +310,7 @@ same manner as :data:`sys.path` is configured in workers before executing
 work items.
 
 This bug caused some forkserver module preloading to silently fail to
-preload. This manifested as a performance degration in child processes when
+preload. This manifested as a performance degradation in child processes when
 the ``sys.path`` was required due to additional repeated work in every
 worker.
 
index 0937a0c6125e0a88323c12db164ca9affe1d8b33..176ba72da65e4bf40e0072b10d9498fb902369b8 100644 (file)
@@ -649,7 +649,7 @@ searching the Python interpreter directory.
 .. section: Core and Builtins
 
 We now use the location of the ``libpython`` runtime library used in the
-current proccess to determine :data:`sys.base_prefix` on all platforms
+current process to determine :data:`sys.base_prefix` on all platforms
 implementing the `dladdr
 <https://pubs.opengroup.org/onlinepubs/9799919799/functions/dladdr.html>`_
 function defined by the UNIX standard — this includes Linux, Android, macOS,
index bcee785a1a0a6c98f6342c91e73bc12878fa6eba..bafd8845de69735e934914156cac3d061be270b0 100644 (file)
@@ -160,7 +160,7 @@ Use monospace font from System Font Stack for cross-platform support in
 .. nonce: 3sBFv2
 .. section: Library
 
-Improve perfomance of :attr:`uuid.UUID.hex` and :meth:`uuid.UUID.__str__
+Improve performance of :attr:`uuid.UUID.hex` and :meth:`uuid.UUID.__str__
 <object.__str__>`.
 
 ..
@@ -535,7 +535,7 @@ the correct type, when called with optimize=False.
 
 Forbid the use of colon (":") as a fractional component separator and other
 improvements to the consistency of error raising between the C and Python
-implementaitons of :meth:`datetime.time.fromisoformat` and
+implementations of :meth:`datetime.time.fromisoformat` and
 :meth:`datetime.datetime.fromisoformat`. Patch by Semyon Moroz.
 
 ..
@@ -1109,7 +1109,7 @@ Fix two more :class:`bytearray` functions for :term:`free threading`.
 
 Use tagged references (``_PyStackRef``) for the default build as well as for
 the free-threading build. This has a small negative performance impact
-short-term but will enable larger speedups in the future and signficantly
+short-term but will enable larger speedups in the future and significantly
 reduce maintenance costs by allowing a single implementation of tagged
 references in the future.
 
@@ -1209,7 +1209,7 @@ is called concurrently with ``set.clear()``.
 .. section: Core and Builtins
 
 The internal (evaluation) stack is now spilled to memory whenever execution
-esacpes from the interpreter or JIT compiled code. This should have no
+escapes from the interpreter or JIT compiled code. This should have no
 observable effect in either Python or builtin extensions, but will allow
 various important optimizations in the future.
 
index 62aa87aa7b18cd486073a8337178e16822e8c2a1..232321c515721ef430cc60e0ce5200e203f36836 100644 (file)
@@ -53,7 +53,7 @@ export EM_COMPILER_WRAPPER=ccache
 
 #### Compile and build Python interpreter
 
-You can use `python Tools/wasm/emscripten` to compile and build targetting
+You can use `python Tools/wasm/emscripten` to compile and build targeting
 Emscripten. You can do everything at once with:
 ```shell
 python Tools/wasm/emscripten build