]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-42114: ctypes documentation: fix winmode parameter default value (GH-29976)
authorLouis Sautier <sautier.louis@gmail.com>
Fri, 10 Dec 2021 23:00:02 +0000 (00:00 +0100)
committerGitHub <noreply@github.com>
Fri, 10 Dec 2021 23:00:02 +0000 (00:00 +0100)
Signed-off-by: Louis Sautier <sautier.louis@gmail.com>
Doc/library/ctypes.rst

index b58b961a30de604883af349e3f2f479386f42c09..6e147fc66eb147b6b6e661f627ae52915514b0b3 100644 (file)
@@ -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