summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-12-10 23:29:28 (GMT)
committerGitHub <noreply@github.com>2021-12-10 23:29:28 (GMT)
commitf8eebb0db720cd81fb736d9cbfd16faf2ec68b53 (patch)
tree52eb0462767f3fcc49f3b604192b8d29903b5765
parentbad16f0cf71a6b11ef62f86be6b3d3567cd70a16 (diff)
downloadcpython-f8eebb0db720cd81fb736d9cbfd16faf2ec68b53.zip
cpython-f8eebb0db720cd81fb736d9cbfd16faf2ec68b53.tar.gz
cpython-f8eebb0db720cd81fb736d9cbfd16faf2ec68b53.tar.bz2
bpo-42114: ctypes documentation: fix winmode parameter default value (GH-29976) (GH-30038)
Signed-off-by: Louis Sautier <sautier.louis@gmail.com> (cherry picked from commit c1051e08b3c6d9045322763876a4b0aea98d79f9) Co-authored-by: Louis Sautier <sautier.louis@gmail.com>
-rw-r--r--Doc/library/ctypes.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst
index b186f1d5..c10e54f 100644
--- a/Doc/library/ctypes.rst
+++ b/Doc/library/ctypes.rst
@@ -1320,7 +1320,7 @@ There are several ways to load shared libraries into the Python process. One
way is to instantiate one of the following classes:
-.. class:: CDLL(name, mode=DEFAULT_MODE, handle=None, use_errno=False, use_last_error=False, winmode=0)
+.. class:: CDLL(name, mode=DEFAULT_MODE, handle=None, use_errno=False, use_last_error=False, winmode=None)
Instances of this class represent loaded shared libraries. Functions in these
libraries use the standard C calling convention, and are assumed to return
@@ -1342,7 +1342,7 @@ way is to instantiate one of the following classes:
-- A tool to find DLL dependents.
-.. class:: OleDLL(name, mode=DEFAULT_MODE, handle=None, use_errno=False, use_last_error=False, winmode=0)
+.. class:: OleDLL(name, mode=DEFAULT_MODE, handle=None, use_errno=False, use_last_error=False, winmode=None)
Windows only: Instances of this class represent loaded shared libraries,
functions in these libraries use the ``stdcall`` calling convention, and are
@@ -1355,7 +1355,7 @@ way is to instantiate one of the following classes:
:exc:`WindowsError` used to be raised.
-.. class:: WinDLL(name, mode=DEFAULT_MODE, handle=None, use_errno=False, use_last_error=False, winmode=0)
+.. class:: WinDLL(name, mode=DEFAULT_MODE, handle=None, use_errno=False, use_last_error=False, winmode=None)
Windows only: Instances of this class represent loaded shared libraries,
functions in these libraries use the ``stdcall`` calling convention, and are