summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorAndrew Kuchling <amk@amk.ca>2013-06-21 14:58:41 (GMT)
committerAndrew Kuchling <amk@amk.ca>2013-06-21 14:58:41 (GMT)
commitc61b9130786229aea79dbe2b19b46db020b0632b (patch)
treeb07f235d7a21d2f3636df3f3fbb6e45df87e9f17 /Doc
parent3468d25a80b6d080b2a90d596ba4c3f6c2618d39 (diff)
downloadcpython-c61b9130786229aea79dbe2b19b46db020b0632b.zip
cpython-c61b9130786229aea79dbe2b19b46db020b0632b.tar.gz
cpython-c61b9130786229aea79dbe2b19b46db020b0632b.tar.bz2
#13226: update references from ctypes/DLFCN modules to os module
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/sys.rst9
1 files changed, 5 insertions, 4 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
index c912e11..341764a 100644
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -411,9 +411,10 @@ always available.
.. function:: getdlopenflags()
- Return the current value of the flags that are used for :c:func:`dlopen` calls.
- The flag constants are defined in the :mod:`ctypes` and :mod:`DLFCN` modules.
- Availability: Unix.
+ Return the current value of the flags that are used for
+ :c:func:`dlopen` calls. Symbolic names for the flag values can be
+ found in the :mod:`os` module (``RTLD_xxx`` constants, e.g.
+ :data:`os.RTLD_LAZY`). Availability: Unix.
.. function:: getfilesystemencoding()
@@ -906,7 +907,7 @@ always available.
the interpreter loads extension modules. Among other things, this will enable a
lazy resolving of symbols when importing a module, if called 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.
:data:`os.RTLD_LAZY`).