Mercurial > cpython-lru_cache-weakref
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 73242:a293cc899c7b | 73243:05e2bdc00c0c |
|---|---|
| 773 Set the flags used by the interpreter for dlopen calls, such as when the\n\ | 773 Set the flags used by the interpreter for dlopen calls, such as when the\n\ |
| 774 interpreter loads extension modules. Among other things, this will enable\n\ | 774 interpreter loads extension modules. Among other things, this will enable\n\ |
| 775 a lazy resolving of symbols when importing a module, if called as\n\ | 775 a lazy resolving of symbols when importing a module, if called as\n\ |
| 776 sys.setdlopenflags(0). To share symbols across extension modules, call as\n\ | 776 sys.setdlopenflags(0). To share symbols across extension modules, call as\n\ |
| 777 sys.setdlopenflags(ctypes.RTLD_GLOBAL). Symbolic names for the flag modules\n\ | 777 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\ | 778 can be found in the os module (RTLD_xxx constants, e.g. os.RTLD_LAZY)."); |
| 779 is not available, it can be generated from /usr/include/dlfcn.h using the\n\ | |
| 780 h2py script."); | |
| 781 | 779 |
| 782 static PyObject * | 780 static PyObject * |
| 783 sys_getdlopenflags(PyObject *self, PyObject *args) | 781 sys_getdlopenflags(PyObject *self, PyObject *args) |
| 784 { | 782 { |
| 785 PyThreadState *tstate = PyThreadState_GET(); | 783 PyThreadState *tstate = PyThreadState_GET(); |
