8000 gh-104773: PEP 594: Remove the ossaudiodev module (#104862) · python/cpython@fc07fe4 · GitHub
[go: up one dir, main page]

Skip to content

Commit fc07fe4

Browse files
authored
gh-104773: PEP 594: Remove the ossaudiodev module (#104862)
* Remove ossaudiodev extension in configure.ac and regenerate the configure script. * Remove ossaudiodev in Modules/Setup and Modules/Setup.stdlib.in.
1 parent a4b7e9d commit fc07fe4

18 files changed

+12
-2119
lines changed

Doc/library/ossaudiodev.rst

-453
This file was deleted.

Doc/library/superseded.rst

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ backwards compatibility. They have been superseded by other modules.
2020
nis.rst
2121
nntplib.rst
2222
optparse.rst
23-
ossaudiodev.rst
2423
spwd.rst
2524
sunau.rst
2625
uu.rst

Doc/tools/.nitignore

-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ Doc/library/operator.rst
172172
Doc/library/optparse.rst
173173
Doc/library/os.path.rst
174174
Doc/library/os.rst
175-
Doc/library/ossaudiodev.rst
176175
Doc/library/pickle.rst
177176
Doc/library/pickletools.rst
178177
Doc/library/platform.rst

Doc/whatsnew/2.3.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,7 @@ complete list of changes, or look through the CVS logs for all the details.
13921392
details.
13931393

13941394
* The old and never-documented :mod:`linuxaudiodev` module has been deprecated,
1395-
and a new version named :mod:`ossaudiodev` has been added. The module was
1395+
and a new version named :mod:`!ossaudiodev` has been added. The module was
13961396
renamed because the OSS sound drivers can be used on platforms other than Linux,
13971397
and the interface has also been tidied and brought up to date in various ways.
13981398
(Contributed by Greg Ward and Nicholas FitzRoy-Dale.)

Doc/whatsnew/3.11.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1737,7 +1737,7 @@ Modules
17371737
+---------------------+---------------------+---------------------+---------------------+---------------------+
17381738
| :mod:`!cgi` | :mod:`imghdr` | :mod:`nntplib` | :mod:`spwd` | :mod:`xdrlib` |
17391739
+---------------------+---------------------+---------------------+---------------------+---------------------+
1740-
| :mod:`!cgitb` | :mod:`mailcap` | :mod:`ossaudiodev` | :mod:`sunau` | |
1740+
| :mod:`!cgitb` | :mod:`mailcap` | :mod:`!ossaudiodev` | :mod:`sunau` | |
17411741
+---------------------+---------------------+---------------------+---------------------+---------------------+
17421742

17431743
(Contributed by Brett Cannon in :issue:`47061` and Victor Stinner in

Doc/whatsnew/3.12.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ Modules (see :pep:`594`):
897897
* :mod:`msilib`
898898
* :mod:`nis`
899899
* :mod:`nntplib`
900-
* :mod:`ossaudiodev`
900+
* :mod:`!ossaudiodev`
901901
* :mod:`!pipes`
902902
* :mod:`!sndhdr`
903903
* :mod:`spwd`

Doc/whatsnew/3.13.rst

+4
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,10 @@ Removed
157157
use the :mod:`subprocess` module instead.
158158
(Contributed by Victor Stinner in :gh:`104773`.)
159159

160+
* :pep:`594`: Remove the :mod:`!ossaudiodev` module, deprecated in Python 3.11:
161+
use the `pygame project <https://www.pygame.org/>`_ for audio playback.
162+
(Contributed by Victor Stinner in :gh:`104780`.)
163+
160164

161165
Porting to Python 3.13
162166
======================

Doc/whatsnew/3.5.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -2095,7 +2095,7 @@ accepts ``"x"`` to request exclusive creation.
20952095
Other module-level changes
20962096
==========================
20972097

2098-
Many functions in the :mod:`mmap`, :mod:`ossaudiodev`, :mod:`socket`,
2098+
Many functions in the :mod:`mmap`, :mod:`!ossaudiodev`, :mod:`socket`,
20992099
:mod:`ssl`, and :mod:`codecs` modules now accept writable
21002100
:term:`bytes-like objects <bytes-like object>`.
21012101
(Contributed by Serhiy Storchaka in :issue:`23001`.)

Lib/test/test_ossaudiodev.py

-205
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
:pep:`594`: Remove the :mod:`!ossaudiodev` module, deprecated in Python 3.11.
2+
Patch Victor Stinner.

Modules/Setup

+1-2
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ PYTHONPATH=$(COREPYTHONPATH)
184184
#_posixshmem -I$(srcdir)/Modules/_multiprocessing _multiprocessing/posixshmem.c -lrt
185185
#fcntl fcntlmodule.c
186186
#grp grpmodule.c
187-
#ossaudiodev ossaudiodev.c
188187
#resource resource.c
189188
#spwd spwdmodule.c
190189
#syslog syslogmodule.c
@@ -262,7 +261,7 @@ PYTHONPATH=$(COREPYTHONPATH)
262261
# *** Always uncomment this; X11 libraries to link with:
263262
# -lX11
264263

265-
# Some system have -lcurses
264+
# Some system have -lcurses
266265
#_curses -lncurses -lncursesw -ltermcap _cursesmodule.c
267266
#_curses_panel -lpanel -lncurses _curses_panel.c
268267

Modules/Setup.stdlib.in

-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@
115115
# Linux: glibc has deprecated SUN RPC, APIs are in libnsl and libtirpc (bpo-32521)
116116
@MODULE_NIS_TRUE@nis nismodule.c
117117
# needs sys/soundcard.h or linux/soundcard.h (Linux, FreeBSD)
118-
@MODULE_OSSAUDIODEV_TRUE@ossaudiodev ossaudiodev.c
119118
@MODULE__POSIXSUBPROCESS_TRUE@_posixsubprocess _posixsubprocess.c
120119
@MODULE_RESOURCE_TRUE@resource resource.c
121120
@MODULE_SELECT_TRUE@select selectmodule.c

0 commit comments

Comments
 (0)
0