Serhiy Storchaka added the comment: I don't see anything wrong in current code. In first alternation data is an array of sampwidth-sized items and the number of written bytes is len(data) * self._sampwidth. In second alternation data is raw bytes object and the number of written bytes is just len(data).
Could you please provide a sample script which exposes the wrong behavior? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue11126> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com