summaryrefslogtreecommitdiffstats
path: root/Doc/library/sys.rst
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-10-25 11:34:04 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-10-25 11:34:04 (GMT)
commit8b905bd9d40f0545e054737b8796a18366546ffc (patch)
treeb2b62946432510b703420013a926d7a5155ade25 /Doc/library/sys.rst
parente0be4232971edca23438cc3d79761141f2de124f (diff)
downloadcpython-8b905bd9d40f0545e054737b8796a18366546ffc.zip
cpython-8b905bd9d40f0545e054737b8796a18366546ffc.tar.gz
cpython-8b905bd9d40f0545e054737b8796a18366546ffc.tar.bz2
Issue #13226: Add RTLD_xxx constants to the os module. These constants can by
used with sys.setdlopenflags().
Diffstat (limited to 'Doc/library/sys.rst')
-rw-r--r--Doc/library/sys.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
index 0a8ac8b..a032549 100644
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -801,11 +801,11 @@ 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(ctypes.RTLD_GLOBAL)``. Symbolic names for the
- flag modules can be either found in the :mod:`ctypes` module, or in the :mod:`DLFCN`
- module. If :mod:`DLFCN` is not available, it can be generated from
- :file:`/usr/include/dlfcn.h` using the :program:`h2py` script. Availability:
- Unix.
+ ``sys.setdlopenflags(os.RTLD_GLOBAL)``. Symbolic names for the flag modules
+ can be found in the :mod:`os` module (``RTLD_xxx`` constants, e.g.
+ :data:`os.RTLD_LAZY`).
+
+ Availability: Unix.
.. function:: setprofile(profilefunc)