Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f4afa43

Browse files
author
Victor Stinner
committed
Issue #13226: Update sys.setdlopenflags() docstring
Refer to os.RTLD_xxx constants instead of ctypes and DLFCN modules.
1 parent 39648d1 commit f4afa43

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

Python/sysmodule.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -775,9 +775,7 @@ interpreter loads extension modules. Among other things, this will enable\n\
775775
a lazy resolving of symbols when importing a module, if called as\n\
776776
sys.setdlopenflags(0). To share symbols across extension modules, call as\n\
777777
sys.setdlopenflags(ctypes.RTLD_GLOBAL). Symbolic names for the flag modules\n\
778-
can be either found in the ctypes module, or in the DLFCN module. If DLFCN\n\
779-
is not available, it can be generated from /usr/include/dlfcn.h using the\n\
780-
h2py script.");
778+
can be found in the os module (RTLD_xxx constants, e.g. os.RTLD_LAZY).");
781779

782780
static PyObject *
783781
sys_getdlopenflags(PyObject *self, PyObject *args)

0 commit comments

Comments
 (0)