[Python-checkins] Grammatical improvements for ctypes 'winmode' documentation (GH-19167)

zooba webhook-mailer at python.org
Mon Nov 28 11:05:48 EST 2022


https://github.com/python/cpython/commit/65417988a589e6edfeada83227a8b0884a64af4f
commit: 65417988a589e6edfeada83227a8b0884a64af4f
branch: main
author: David Miguel Susano Pinto <carandraug+dev at gmail.com>
committer: zooba <steve.dower at microsoft.com>
date: 2022-11-28T16:05:21Z
summary:

Grammatical improvements for ctypes 'winmode' documentation (GH-19167)

files:
M Doc/library/ctypes.rst

diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst
index 71e5545ffe47..fd5df875ed74 100644
--- a/Doc/library/ctypes.rst
+++ b/Doc/library/ctypes.rst
@@ -1440,8 +1440,8 @@ copy of the windows error code.
 
 The *winmode* parameter is used on Windows to specify how the library is loaded
 (since *mode* is ignored). It takes any value that is valid for the Win32 API
-``LoadLibraryEx`` flags parameter. When omitted, the default is to use the flags
-that result in the most secure DLL load to avoiding issues such as DLL
+``LoadLibraryEx`` flags parameter. When omitted, the default is to use the
+flags that result in the most secure DLL load, which avoids issues such as DLL
 hijacking. Passing the full path to the DLL is the safest way to ensure the
 correct library and dependencies are loaded.
 



More information about the Python-checkins mailing list