aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-10-25 13:34:04 +0200
committerVictor Stinner <victor.stinner@haypocalc.com>2011-10-25 13:34:04 +0200
commit8b905bd9d40f0545e054737b8796a18366546ffc (patch)
treeb2b62946432510b703420013a926d7a5155ade25 /Doc/library/sys.rst
parentClose #10278: Add clock_getres(), clock_gettime() and CLOCK_xxx constants to (diff)
downloadcpython-8b905bd9d40f0545e054737b8796a18366546ffc.tar.gz
cpython-8b905bd9d40f0545e054737b8796a18366546ffc.tar.bz2
cpython-8b905bd9d40f0545e054737b8796a18366546ffc.zip
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 0a8ac8be1ab..a0325493c87 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)