Skip to content

Commit c1051e0

Browse files
authored
bpo-42114: ctypes documentation: fix winmode parameter default value (GH-29976)
Signed-off-by: Louis Sautier <[email protected]>
1 parent 16638a4 commit c1051e0

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
@@ -1319,7 +1319,7 @@ There are several ways to load shared libraries into the Python process. One
13191319
way is to instantiate one of the following classes:
13201320

13211321

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

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

13431343

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

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

13561356

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

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

0 commit comments

Comments
 (0)