Oleg Plakhotnyuk <oleg...@gmail.com> added the comment: Yep, you're right. Didn't noticed audioop_check_size() function at first.
The fact that audioop accepts unicode strings seems weird to me too. I've replaced strings with bytes in tests. However, I'm afraid to add restrictions to library itself because of backward compatibility. ---------- Added file: http://bugs.python.org/file24284/audioop_size_check.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13806> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com