Skip to content

Commit 8f3728e

Browse files
bpo-42114: ctypes documentation: fix winmode parameter default value (GH-29976) (GH-30037)
Signed-off-by: Louis Sautier <[email protected]> (cherry picked from commit c1051e0) Co-authored-by: Louis Sautier <[email protected]>
1 parent bb8d645 commit 8f3728e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/ctypes.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,7 @@ There are several ways to load shared libraries into the Python process. One
13201320
way is to instantiate one of the following classes:
13211321

13221322

1323-
.. class:: CDLL(name, mode=DEFAULT_MODE, handle=None, use_errno=False, use_last_error=False, winmode=0)
1323+
.. class:: CDLL(name, mode=DEFAULT_MODE, handle=None, use_errno=False, use_last_error=False, winmode=None)
13241324

13251325
Instances of this class represent loaded shared libraries. Functions in these
13261326
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:
13421342
-- A tool to find DLL dependents.
13431343

13441344

1345-
.. class:: OleDLL(name, mode=DEFAULT_MODE, handle=None, use_errno=False, use_last_error=False, winmode=0)
1345+
.. class:: OleDLL(name, mode=DEFAULT_MODE, handle=None, use_errno=False, use_last_error=False, winmode=None)
13461346

13471347
Windows only: Instances of this class represent loaded shared libraries,
13481348
functions in these libraries use the ``stdcall`` calling convention, and are
@@ -1355,7 +1355,7 @@ way is to instantiate one of the following classes:
13551355
:exc:`WindowsError` used to be raised.
13561356

13571357

1358-
.. class:: WinDLL(name, mode=DEFAULT_MODE, handle=None, use_errno=False, use_last_error=False, winmode=0)
1358+
.. class:: WinDLL(name, mode=DEFAULT_MODE, handle=None, use_errno=False, use_last_error=False, winmode=None)
13591359

13601360
Windows only: Instances of this class represent loaded shared libraries,
13611361
functions in these libraries use the ``stdcall`` calling convention, and are

0 commit comments

Comments
 (0)