summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorLouis Sautier <sautier.louis@gmail.com>2021-12-10 23:00:02 (GMT)
committerGitHub <noreply@github.com>2021-12-10 23:00:02 (GMT)
commitc1051e08b3c6d9045322763876a4b0aea98d79f9 (patch)
treeadd8025c163251b2e51f0b29017a3ca576be3580 /Doc
parent16638a4bdb802ae52d386a39d2dbef14de3fbc92 (diff)
downloadcpython-c1051e08b3c6d9045322763876a4b0aea98d79f9.zip
cpython-c1051e08b3c6d9045322763876a4b0aea98d79f9.tar.gz
cpython-c1051e08b3c6d9045322763876a4b0aea98d79f9.tar.bz2
bpo-42114: ctypes documentation: fix winmode parameter default value (GH-29976)
Signed-off-by: Louis Sautier <sautier.louis@gmail.com>
Diffstat (limited to 'Doc')
-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 b58b961..6e147fc 100644
--- a/Doc/library/ctypes.rst
+++ b/Doc/library/ctypes.rst
@@ -1319,7 +1319,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
@@ -1341,7 +1341,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
@@ -1354,7 +1354,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