Skip to content

Commit

Permalink
bpo-42114: ctypes documentation: fix winmode parameter default value (G…
Browse files Browse the repository at this point in the history
…H-29976) (GH-30038)

Signed-off-by: Louis Sautier <sautier.louis@gmail.com>
(cherry picked from commit c1051e0)

Co-authored-by: Louis Sautier <sautier.louis@gmail.com>
  • Loading branch information
miss-islington and sbraz committed Dec 10, 2021
1 parent bad16f0 commit f8eebb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Doc/library/ctypes.rst
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit f8eebb0

Please sign in to comment.