GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||
GeezerVison is showing github.com — gh-104773: PEP 594: Remove the ossaudiodev module by vstinner · Pull Request #104862 · python/cpython Conversation
|
|
Using See nltk/corpus/reader/timit.py. This code tries ossaudiodev but catches properly ImportError and uses pygame if the ossaudiodev module is missing. If ossaudiodev and pygame are missing, it displays the error message: In the What's New In Python 3.13 entry, I suggest replacing ossaudiodev with pygame. IMO pygame is a more portable since it supports multiple audio playback backend depending on the platform, whereas ossaudiodev only supports OSS backend (ex: it doesn't support Windows). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Can these bits also be deleted?
configure
13492: OSSAUDIODEV_LIBS="-lossaudio" ;; #(
13494: OSSAUDIODEV_LIBS=""
configure.ac
3921: [NetBSD*], [OSSAUDIODEV_LIBS="-lossaudio"],
3922: [OSSAUDIODEV_LIBS=""]
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| (Contributed by Victor Stinner in :gh:`104773`.) | ||
|
|
||
| * :pep:`594`: Remove the :mod:`!ossaudiodev` module, deprecated in Python 3.11: | ||
| use the `pygame project <https://www.pygame.org/>`_ for audio playback. |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Shall we also/instead mention the pygame-ce fork? https://pyga.me
More info: https://www.reddit.com/r/pygame/comments/1112q10/pygame_community_edition_announcement/
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to only link to pygame for now. It's unclear to me where the community goes, but so far, "pygame" remains the reference project. I hope that the two communities will merge again. If not, we can update the doc later. The problem is that the Python documentation is not updated frequently.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Can we also delete Lib/test/audiotest.au?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
My PR #104863 removes it.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I created PR #104864 to remove it. Well spotted, I missed that one. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.