From: R David Murray Date: Mon, 10 Mar 2014 00:42:49 +0000 (-0400) Subject: whatsnew: auidioop.byteswap (#16685). X-Git-Tag: v3.4.1rc1~233^2~90 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2177be2c3af438e6abab5832bd8f0e81411f9f47;p=python whatsnew: auidioop.byteswap (#16685). --- diff --git a/Doc/library/audioop.rst b/Doc/library/audioop.rst index faf991694d..ce127aa06a 100644 --- a/Doc/library/audioop.rst +++ b/Doc/library/audioop.rst @@ -80,7 +80,7 @@ The module defines the following variables and functions: "Byteswap" all samples in a fragment and returns the modified fragment. Converts big-endian samples to little-endian and vice versa. - .. versionadded: 3.4 + .. versionadded:: 3.4 .. function:: cross(fragment, width) diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst index 971afc445b..cadb2aeaf3 100644 --- a/Doc/whatsnew/3.4.rst +++ b/Doc/whatsnew/3.4.rst @@ -570,8 +570,9 @@ audioop :mod:`audioop` now supports 24-bit samples. (Contributed by Serhiy Storchaka in :issue:`12866`.) -Added the :func:`~audioop.byteswap` function to convert big-endian samples -to little-endian and vice versa (:issue:`19641`). +New :func:`~audioop.byteswap` function converts big-endian samples to +little-endian and vice versa (Contributed by Serhiy Storchaka in +:issue:`19641`). All :mod:`audioop` functions now accept any :term:`bytes-like object`. Strings are not accepted: they didn't work before, now they raise an error right away.