Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6cf49cf

Browse files
committed
Remove the dl module per PEP 3108.
1 parent e7789b1 commit 6cf49cf

11 files changed

Lines changed: 5 additions & 467 deletions

File tree

Doc/library/dl.rst

Lines changed: 0 additions & 108 deletions
This file was deleted.

Doc/library/sys.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ always available.
304304
.. function:: getdlopenflags()
305305

306306
Return the current value of the flags that are used for :cfunc:`dlopen` calls.
307-
The flag constants are defined in the :mod:`dl` and :mod:`DLFCN` modules.
307+
The flag constants are defined in the :mod:`ctypes` and :mod:`DLFCN` modules.
308308
Availability: Unix.
309309

310310

@@ -587,8 +587,8 @@ always available.
587587
the interpreter loads extension modules. Among other things, this will enable a
588588
lazy resolving of symbols when importing a module, if called as
589589
``sys.setdlopenflags(0)``. To share symbols across extension modules, call as
590-
``sys.setdlopenflags(dl.RTLD_NOW | dl.RTLD_GLOBAL)``. Symbolic names for the
591-
flag modules can be either found in the :mod:`dl` module, or in the :mod:`DLFCN`
590+
``sys.setdlopenflags(ctypes.RTLD_GLOBAL)``. Symbolic names for the
591+
flag modules can be either found in the :mod:`ctypes` module, or in the :mod:`DLFCN`
592592
module. If :mod:`DLFCN` is not available, it can be generated from
593593
:file:`/usr/include/dlfcn.h` using the :program:`h2py` script. Availability:
594594
Unix.

Doc/library/unix.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ of it. Here's an overview:
1717
spwd.rst
1818
grp.rst
1919
crypt.rst
20-
dl.rst
2120
termios.rst
2221
tty.rst
2322
pty.rst

Lib/test/test_dl.py

Lines changed: 0 additions & 34 deletions
This file was deleted.

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ Core and Builtins
1818
Extension Modules
1919
-----------------
2020

21+
- The dl module was removed, use the ctypes module instead.
22+
2123
- Use wchar_t functions in _locale module.
2224

2325
Library

Modules/Setup.dist

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -295,14 +295,6 @@ _symtable symtablemodule.c
295295
#_curses_panel _curses_panel.c -lpanel -lncurses
296296

297297

298-
# Generic (SunOS / SVR4) dynamic loading module.
299-
# This is not needed for dynamic loading of Python modules --
300-
# it is a highly experimental and dangerous device for calling
301-
# *arbitrary* C functions in *arbitrary* shared libraries:
302-
303-
#dl dlmodule.c
304-
305-
306298
# Modules that provide persistent dictionary-like semantics. You will
307299
# probably want to arrange for at least one of them to be available on
308300
# your machine, though none are defined by default because of library

0 commit comments

Comments
 (0)