From: Martin Panter Date: Tue, 27 Sep 2016 05:10:40 +0000 (+0000) Subject: Issue #26439: Document that RTLD_NOW is always added X-Git-Tag: v3.6.0b2~111^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f18a5daadd6dc9d43a673a6f363d0116bee20210;p=thirdparty%2FPython%2Fcpython.git Issue #26439: Document that RTLD_NOW is always added --- diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst index a67579073747..072d61ef31b8 100644 --- a/Doc/library/ctypes.rst +++ b/Doc/library/ctypes.rst @@ -1354,8 +1354,9 @@ function is used to load the library into the process, and to get a handle to it. The *mode* parameter can be used to specify how the library is loaded. For -details, consult the :manpage:`dlopen(3)` manpage, on Windows, *mode* is -ignored. +details, consult the :manpage:`dlopen(3)` manpage. On Windows, *mode* is +ignored. On posix systems, RTLD_NOW is always added, and is not +configurable. The *use_errno* parameter, when set to True, enables a ctypes mechanism that allows accessing the system :data:`errno` error number in a safe way.