summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorAlexandre Vassalotti <alexandre@peadrop.com>2009-06-29 01:01:51 (GMT)
committerAlexandre Vassalotti <alexandre@peadrop.com>2009-06-29 01:01:51 (GMT)
commit7274cffa9e038ddef9ced658165014629ef3e715 (patch)
tree2d1a55c26b81d3cbd9d65ac7d9bdb62167353ef4 /Python
parent1dcc38456f9da6fd3434a3deb6e2ae50df1bd775 (diff)
downloadcpython-7274cffa9e038ddef9ced658165014629ef3e715.zip
cpython-7274cffa9e038ddef9ced658165014629ef3e715.tar.gz
cpython-7274cffa9e038ddef9ced658165014629ef3e715.tar.bz2
Update docstrings for sys.getdlopenflags() and sys.setdlopenflags().
Diffstat (limited to 'Python')
-rw-r--r--Python/sysmodule.c22
1 files changed, 12 insertions, 10 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 6eb6b62..86e0feb 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -599,12 +599,14 @@ sys_setdlopenflags(PyObject *self, PyObject *args)
PyDoc_STRVAR(setdlopenflags_doc,
"setdlopenflags(n) -> None\n\
\n\
-Set the flags that will be used for dlopen() calls. Among other\n\
-things, this will enable a lazy resolving of symbols when importing\n\
-a module, if called as sys.setdlopenflags(0)\n\
-To share symbols across extension modules, call as\n\
-sys.setdlopenflags(dl.RTLD_NOW|dl.RTLD_GLOBAL)"
-);
+Set the flags used by the interpreter for dlopen calls, such as when the\n\
+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.");
static PyObject *
sys_getdlopenflags(PyObject *self, PyObject *args)
@@ -618,10 +620,10 @@ sys_getdlopenflags(PyObject *self, PyObject *args)
PyDoc_STRVAR(getdlopenflags_doc,
"getdlopenflags() -> int\n\
\n\
-Return the current value of the flags that are used for dlopen()\n\
-calls. The flag constants are defined in the dl module."
-);
-#endif
+Return the current value of the flags that are used for dlopen calls.\n\
+The flag constants are defined in the ctypes and DLFCN modules.");
+
+#endif /* HAVE_DLOPEN */
#ifdef USE_MALLOPT
/* Link with -lmalloc (or -lmpc) on an SGI */