[issue19641] Add audioop.byteswap()

2013-11-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have committed simplified patch, without optimization for 1-byte samples. -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue19641] Add audioop.byteswap()

2013-11-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset fbebc90abcd1 by Serhiy Storchaka in branch 'default': Issue #19641: Added the audioop.byteswap() function to convert big-endian http://hg.python.org/cpython/rev/fbebc90abcd1 -- nosy: +python-dev ___ Pytho

[issue19641] Add audioop.byteswap()

2013-11-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch is synchronized with tip (after committing issue19633). It enables temporary disabled in issue19633 tests. -- Added file: http://bugs.python.org/file32749/audioop_byteswap_3.patch ___ Python tracker

[issue19641] Add audioop.byteswap()

2013-11-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch addresses some Victor's comments. Added optimization for trivial case byteswap(bytes, 1). -- Added file: http://bugs.python.org/file32688/audioop_byteswap_2.patch ___ Python tracker

[issue19641] Add audioop.byteswap()

2013-11-18 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The audio modules often need convert between little endian and big endian data. The array module can be used to byteswap 16- and 32-bit samples, but it can't help with 24-bit samples. Python implemented function for swapping bytes is not very efficient. In