Mercurial > cpython-lru_cache-weakref
diff Python/sysmodule.c @ 73243:05e2bdc00c0c
Issue #13226: Update sys.setdlopenflags() docstring
Refer to os.RTLD_xxx constants instead of ctypes and DLFCN modules.
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Mon, 31 Oct 2011 11:48:09 +0100 |
| parents | db4aa878cea2 |
| children | 7d96679c5d46 |
line wrap: on
line diff
--- a/Python/sysmodule.c Mon Oct 31 12:08:09 2011 +0100 +++ b/Python/sysmodule.c Mon Oct 31 11:48:09 2011 +0100 @@ -775,9 +775,7 @@ 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)
