summaryrefslogtreecommitdiffstats
path: root/Doc/library/sys.rst
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2008-03-24 06:22:57 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2008-03-24 06:22:57 (GMT)
commit6cf49cf10689bf2ff23fff05928daa23ecdf6fc2 (patch)
treef98ace06aafb9ce7005beb8b3dec94bfec382739 /Doc/library/sys.rst
parente7789b186d640ee00e5709fcfbeca43780d379e4 (diff)
downloadcpython-6cf49cf10689bf2ff23fff05928daa23ecdf6fc2.zip
cpython-6cf49cf10689bf2ff23fff05928daa23ecdf6fc2.tar.gz
cpython-6cf49cf10689bf2ff23fff05928daa23ecdf6fc2.tar.bz2
Remove the dl module per PEP 3108.
Diffstat (limited to 'Doc/library/sys.rst')
-rw-r--r--Doc/library/sys.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
index 02a1d20..085ba64 100644
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -304,7 +304,7 @@ always available.
.. function:: getdlopenflags()
Return the current value of the flags that are used for :cfunc:`dlopen` calls.
- The flag constants are defined in the :mod:`dl` and :mod:`DLFCN` modules.
+ The flag constants are defined in the :mod:`ctypes` and :mod:`DLFCN` modules.
Availability: Unix.
@@ -587,8 +587,8 @@ 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(dl.RTLD_NOW | dl.RTLD_GLOBAL)``. Symbolic names for the
- flag modules can be either found in the :mod:`dl` module, or in the :mod:`DLFCN`
+ ``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.