]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
typo fixes in docs (#142683)
authorSYan212 <syan235711@gmail.com>
Sun, 14 Dec 2025 08:17:22 +0000 (08:17 +0000)
committerGitHub <noreply@github.com>
Sun, 14 Dec 2025 08:17:22 +0000 (13:47 +0530)
Doc/c-api/extension-modules.rst
Doc/c-api/module.rst
Doc/library/inspect.rst
Doc/reference/lexical_analysis.rst

index 0ce173b4bfea7c3a3daa2efd915d82c143f1f0d7..6c5287faa9770fc1c4a47f464c4317c46a6c5431 100644 (file)
@@ -282,7 +282,7 @@ Legacy single-phase initialization
    However, there are no plans to remove support for it.
 
 In single-phase initialization, the old-style
-:ref:`initializaton function <extension-pyinit>` (``PyInit_modulename``)
+:ref:`initialization function <extension-pyinit>` (``PyInit_modulename``)
 should create, populate and return a module object.
 This is typically done using :c:func:`PyModule_Create` and functions like
 :c:func:`PyModule_AddObjectRef`.
index a12f6331c85912747cade9ce34671362e1e78381..0608d45f7c2a26a924ff0e13a849e20b1845fed8 100644 (file)
@@ -588,7 +588,7 @@ A module's token -- and the *your_token* value to use in the above code -- is:
      behave as if it was created from that :c:type:`PyModuleDef`.
      In particular, the module state must have matching layout and semantics.
 
-   Modules created from :c:type:`PyModuleDef` allways use the address of
+   Modules created from :c:type:`PyModuleDef` always use the address of
    the :c:type:`PyModuleDef` as the token.
    This means that :c:macro:`!Py_mod_token` cannot be used in
    :c:member:`PyModuleDef.m_slots`.
index 5220c559d3d857501612ef138da118702182c3bc..e5abd68f03b9c300f4cf436808a3876f6061dd0a 100644 (file)
@@ -640,7 +640,7 @@ Retrieving source code
       Added parameters *inherit_class_doc* and *fallback_to_class_doc*.
 
       Documentation strings on :class:`~functools.cached_property`
-      objects are now inherited if not overriden.
+      objects are now inherited if not overridden.
 
 
 .. function:: getcomments(object)
index 9322d8571f7ab637c774c741a66fd7f7f4a46f75..046c759854c4dfa6708ebe3bcb7cd54d8476149b 100644 (file)
@@ -1227,7 +1227,7 @@ Whitespace is significant in these situations:
   string contents.
 * In ``fstring_replacement_field``, if ``f_debug_specifier`` is present,
   all whitespace after the opening brace until the ``f_debug_specifier``,
-  as well as whitespace immediatelly following ``f_debug_specifier``,
+  as well as whitespace immediately following ``f_debug_specifier``,
   is retained as part of the expression.
 
   .. impl-detail::