]> granicus.if.org Git - python/commitdiff
Issue #13226: Update sys.setdlopenflags() docstring
authorVictor Stinner <victor.stinner@haypocalc.com>
Mon, 31 Oct 2011 10:48:09 +0000 (11:48 +0100)
committerVictor Stinner <victor.stinner@haypocalc.com>
Mon, 31 Oct 2011 10:48:09 +0000 (11:48 +0100)
Refer to os.RTLD_xxx constants instead of ctypes and DLFCN modules.

Python/sysmodule.c

index 6911c9aef6af00a9e98f1fc62ce5d988884eaedd..ab0008e44ccf589d3e95ef879057d58467609696 100644 (file)
@@ -775,9 +775,7 @@ interpreter loads extension modules.  Among other things, this will enable\n\
 a lazy resolving of symbols when importing a module, if called as\n\
 sys.setdlopenflags(0).  To share symbols across extension modules, call as\n\
 sys.setdlopenflags(ctypes.RTLD_GLOBAL).  Symbolic names for the flag modules\n\
-can be either found in the ctypes module, or in the DLFCN module. If DLFCN\n\
-is not available, it can be generated from /usr/include/dlfcn.h using the\n\
-h2py script.");
+can be found in the os module (RTLD_xxx constants, e.g. os.RTLD_LAZY).");
 
 static PyObject *
 sys_getdlopenflags(PyObject *self, PyObject *args)