@@ -586,12 +586,14 @@ sys_setdlopenflags(PyObject *self, PyObject *args)
586586PyDoc_STRVAR (setdlopenflags_doc ,
587587"setdlopenflags(n) -> None\n\
588588\n\
589- Set the flags that will be used for dlopen() calls. Among other\n\
590- things, this will enable a lazy resolving of symbols when importing\n\
591- a module, if called as sys.setdlopenflags(0)\n\
592- To share symbols across extension modules, call as\n\
593- sys.setdlopenflags(dl.RTLD_NOW|dl.RTLD_GLOBAL)"
594- );
589+ Set the flags used by the interpreter for dlopen calls, such as when the\n\
590+ interpreter loads extension modules. Among other things, this will enable\n\
591+ a lazy resolving of symbols when importing a module, if called as\n\
592+ sys.setdlopenflags(0). To share symbols across extension modules, call as\n\
593+ sys.setdlopenflags(ctypes.RTLD_GLOBAL). Symbolic names for the flag modules\n\
594+ can be either found in the ctypes module, or in the DLFCN module. If DLFCN\n\
595+ is not available, it can be generated from /usr/include/dlfcn.h using the\n\
596+ h2py script." );
595597
596598static PyObject *
597599sys_getdlopenflags (PyObject * self , PyObject * args )
@@ -605,10 +607,10 @@ sys_getdlopenflags(PyObject *self, PyObject *args)
605607PyDoc_STRVAR (getdlopenflags_doc ,
606608"getdlopenflags() -> int\n\
607609\n\
608- Return the current value of the flags that are used for dlopen() \n\
609- calls. The flag constants are defined in the dl module."
610- );
611- #endif
610+ Return the current value of the flags that are used for dlopen calls. \n\
611+ The flag constants are defined in the ctypes and DLFCN modules." );
612+
613+ #endif /* HAVE_DLOPEN */
612614
613615#ifdef USE_MALLOPT
614616/* Link with -lmalloc (or -lmpc) on an SGI */
0 commit comments