This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Certain inputs to wave.open() result in readframes returning a str instead of bytes
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.6, Python 3.4, Python 3.5
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: serhiy.storchaka Nosy List: Christophe Biocca, python-dev, serhiy.storchaka
Priority: normal Keywords:

Created on 2015-07-10 18:37 by Christophe Biocca, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
python_wave_error.py Christophe Biocca, 2015-07-10 18:37 Simple script showing the issue.
Messages (3)
msg246575 - (view) Author: Christophe Biocca (Christophe Biocca) Date: 2015-07-10 18:37
Basically, some (malformed or empty?) WAV strings result in the empty string being returned when calling readframes.

That string cannot be passed back to writeframes() without causing a crash, since it does not implement the buffer interface.
msg246578 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2015-07-10 19:27
New changeset 9e035639516c by Serhiy Storchaka in branch '3.4':
Issue #24608: chunk.Chunk.read() now always returns bytes, not str.
https://hg.python.org/cpython/rev/9e035639516c

New changeset 64b2d154a5db by Serhiy Storchaka in branch '3.5':
Issue #24608: chunk.Chunk.read() now always returns bytes, not str.
https://hg.python.org/cpython/rev/64b2d154a5db

New changeset 8befb15024b5 by Serhiy Storchaka in branch 'default':
Issue #24608: chunk.Chunk.read() now always returns bytes, not str.
https://hg.python.org/cpython/rev/8befb15024b5
msg246579 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2015-07-10 19:28
Thank you for your report Christophe.
History
Date User Action Args
2022-04-11 14:58:18adminsetgithub: 68796
2015-07-10 19:28:43serhiy.storchakasetstatus: open -> closed
resolution: fixed
messages: + msg246579

stage: needs patch -> resolved
2015-07-10 19:27:18python-devsetnosy: + python-dev
messages: + msg246578
2015-07-10 19:21:03serhiy.storchakasetassignee: serhiy.storchaka
stage: needs patch

nosy: + serhiy.storchaka
versions: + Python 3.5, Python 3.6
2015-07-10 18:37:45Christophe Bioccacreate