Serhiy Storchaka added the comment: It's because you write an array of integers while writeframes() expects a bytes object.
Here is a test. ---------- keywords: +patch stage: test needed -> needs patch versions: +Python 2.7, Python 3.3, Python 3.4 -Python 2.6 Added file: http://bugs.python.org/file31586/wave_test_write_array.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8311> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com