]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typos in asyncio, ctypes, and importlib documentation (#148747)
authorByteFlow <fakeshadow1337@gmail.com>
Mon, 20 Apr 2026 19:22:37 +0000 (03:22 +0800)
committerGitHub <noreply@github.com>
Mon, 20 Apr 2026 19:22:37 +0000 (12:22 -0700)
Doc/library/asyncio-dev.rst
Doc/library/ctypes.rst
Doc/library/importlib.rst

index f3409bcd2df64896acf465587f20e5d16d595d75..713b40d746680af0e809cc62ec8892e895f8ac3a 100644 (file)
@@ -304,7 +304,7 @@ generator can occur in an unexpected order::
       try:
           yield 2
       finally:
-          await asyncio.sleep(0.1) # immitate some async work
+          await asyncio.sleep(0.1) # imitate some async work
           work_done = True
 
 
index e71d1d06d49b96bd596ef5321e739d082e980f95..b8d615565a590ceda710fede03eca5acc2aae30c 100644 (file)
@@ -1735,7 +1735,7 @@ If wrapping a shared library with :mod:`!ctypes`, consider determining the
 shared library name at development time, and hardcoding it into the wrapper
 module instead of using :func:`!find_library` to locate the library
 at runtime.
-Also consider addding a configuration option or environment variable to let
+Also consider adding a configuration option or environment variable to let
 users select a library to use, and then perhaps use :func:`!find_library`
 as a default or fallback.
 
index 785f6c614b4391711a04f48b5cd155496657cb64..0b76020eacc1da263b9c10d108d4400030942787 100644 (file)
@@ -286,7 +286,7 @@ ABC hierarchy::
          This method can potentially yield a very large number of objects, and
          it may carry out IO operations when computing these values.
 
-         Because of this, it will generaly be desirable to compute the result
+         Because of this, it will generally be desirable to compute the result
          values on-the-fly, as they are needed. As such, the returned object is
          only guaranteed to be an :class:`iterable <collections.abc.Iterable>`,
          instead of a :class:`list` or other
@@ -340,7 +340,7 @@ ABC hierarchy::
          This method can potentially yield a very large number of objects, and
          it may carry out IO operations when computing these values.
 
-         Because of this, it will generaly be desirable to compute the result
+         Because of this, it will generally be desirable to compute the result
          values on-the-fly, as they are needed. As such, the returned object is
          only guaranteed to be an :class:`iterable <collections.abc.Iterable>`,
          instead of a :class:`list` or other