Kaydet (Commit) c61b9130 authored tarafından Andrew Kuchling's avatar Andrew Kuchling

#13226: update references from ctypes/DLFCN modules to os module

üst 3468d25a
...@@ -411,9 +411,10 @@ always available. ...@@ -411,9 +411,10 @@ always available.
.. function:: getdlopenflags() .. function:: getdlopenflags()
Return the current value of the flags that are used for :c:func:`dlopen` calls. Return the current value of the flags that are used for
The flag constants are defined in the :mod:`ctypes` and :mod:`DLFCN` modules. :c:func:`dlopen` calls. Symbolic names for the flag values can be
Availability: Unix. found in the :mod:`os` module (``RTLD_xxx`` constants, e.g.
:data:`os.RTLD_LAZY`). Availability: Unix.
.. function:: getfilesystemencoding() .. function:: getfilesystemencoding()
...@@ -906,7 +907,7 @@ always available. ...@@ -906,7 +907,7 @@ always available.
the interpreter loads extension modules. Among other things, this will enable a the interpreter loads extension modules. Among other things, this will enable a
lazy resolving of symbols when importing a module, if called as lazy resolving of symbols when importing a module, if called as
``sys.setdlopenflags(0)``. To share symbols across extension modules, call as ``sys.setdlopenflags(0)``. To share symbols across extension modules, call as
``sys.setdlopenflags(os.RTLD_GLOBAL)``. Symbolic names for the flag modules ``sys.setdlopenflags(os.RTLD_GLOBAL)``. Symbolic names for the flag values
can be found in the :mod:`os` module (``RTLD_xxx`` constants, e.g. can be found in the :mod:`os` module (``RTLD_xxx`` constants, e.g.
:data:`os.RTLD_LAZY`). :data:`os.RTLD_LAZY`).
......
...@@ -774,7 +774,7 @@ Set the flags used by the interpreter for dlopen calls, such as when the\n\ ...@@ -774,7 +774,7 @@ 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\ interpreter loads extension modules. Among other things, this will enable\n\
a lazy resolving of symbols when importing a module, if called as\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(0). To share symbols across extension modules, call as\n\
sys.setdlopenflags(ctypes.RTLD_GLOBAL). Symbolic names for the flag modules\n\ sys.setdlopenflags(os.RTLD_GLOBAL). Symbolic names for the flag modules\n\
can be found in the os module (RTLD_xxx constants, e.g. os.RTLD_LAZY)."); can be found in the os module (RTLD_xxx constants, e.g. os.RTLD_LAZY).");
static PyObject * static PyObject *
...@@ -790,7 +790,7 @@ PyDoc_STRVAR(getdlopenflags_doc, ...@@ -790,7 +790,7 @@ PyDoc_STRVAR(getdlopenflags_doc,
"getdlopenflags() -> int\n\ "getdlopenflags() -> int\n\
\n\ \n\
Return the current value of the flags that are used for dlopen calls.\n\ 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."); The flag constants are defined in the os module.");
#endif /* HAVE_DLOPEN */ #endif /* HAVE_DLOPEN */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment