https://github.com/python/cpython/commit/39ecb17103a07175895e52c336a0b5980b773bce
commit: 39ecb17103a07175895e52c336a0b5980b773bce
branch: main
author: SYan212 <[email protected]>
committer: kumaraditya303 <[email protected]>
date: 2025-12-14T13:47:22+05:30
summary:
typo fixes in docs (#142683)
files:
M Doc/c-api/extension-modules.rst
M Doc/c-api/module.rst
M Doc/library/inspect.rst
M Doc/reference/lexical_analysis.rst
diff --git a/Doc/c-api/extension-modules.rst b/Doc/c-api/extension-modules.rst
index 0ce173b4bfea7c..6c5287faa9770f 100644
--- a/Doc/c-api/extension-modules.rst
+++ b/Doc/c-api/extension-modules.rst
@@ -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`.
diff --git a/Doc/c-api/module.rst b/Doc/c-api/module.rst
index a12f6331c85912..0608d45f7c2a26 100644
--- a/Doc/c-api/module.rst
+++ b/Doc/c-api/module.rst
@@ -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`.
diff --git a/Doc/library/inspect.rst b/Doc/library/inspect.rst
index 5220c559d3d857..e5abd68f03b9c3 100644
--- a/Doc/library/inspect.rst
+++ b/Doc/library/inspect.rst
@@ -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)
diff --git a/Doc/reference/lexical_analysis.rst
b/Doc/reference/lexical_analysis.rst
index 9322d8571f7ab6..046c759854c4df 100644
--- a/Doc/reference/lexical_analysis.rst
+++ b/Doc/reference/lexical_analysis.rst
@@ -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::
_______________________________________________
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]