Re: [Python-Dev] Implementation difference of audioop.lin2lin in Python2 and Python3

2016-12-14 Thread Terry Reedy
On 12/13/2016 8:47 AM, KH Luke Kim wrote: Yeah, but is it supposed to be avoided to apply new features in Python 3.x to Python 2.x? Sorry if there's already a consensus. The feature set of every Pythonx.y version is frozen with the release of CPython x.y.0. Thereafter, each x.y.1+ release

Re: [Python-Dev] Implementation difference of audioop.lin2lin in Python2 and Python3

2016-12-14 Thread Paul Moore
On 13 December 2016 at 13:47, KH Luke Kim wrote: > Yeah, but is it supposed to be avoided to apply new features in Python 3.x > to Python 2.x? Sorry if there's already a consensus. Yes. Only security-related new features will ever be backported to Python 2 (and even those

Re: [Python-Dev] Implementation difference of audioop.lin2lin in Python2 and Python3

2016-12-14 Thread KH Luke Kim
That helped a lot, thanks! On Wed, 14 Dec 2016 at 4:58 AM Martin Panter wrote: > On 13 December 2016 at 13:37, MRAB wrote: > > > On 2016-12-13 11:31, KH Luke Kim wrote: > > >> > > >> Hello, > > >> recently there had been some issues in

Re: [Python-Dev] Implementation difference of audioop.lin2lin in Python2 and Python3

2016-12-14 Thread KH Luke Kim
Yeah, but is it supposed to be avoided to apply new features in Python 3.x to Python 2.x? Sorry if there's already a consensus. 2016-12-13 22:37 GMT+09:00 MRAB : > On 2016-12-13 11:31, KH Luke Kim wrote: > >> Hello, >> recently there had been some issues in audioread

Re: [Python-Dev] Implementation difference of audioop.lin2lin in Python2 and Python3

2016-12-13 Thread Martin Panter
On 13 December 2016 at 13:37, MRAB wrote: > On 2016-12-13 11:31, KH Luke Kim wrote: >> >> Hello, >> recently there had been some issues in audioread and librosa that 3-byte >> samples can be loaded in Python 3 but 2. >> >> The documentation says that the

Re: [Python-Dev] Implementation difference of audioop.lin2lin in Python2 and Python3

2016-12-13 Thread MRAB
On 2016-12-13 11:31, KH Luke Kim wrote: Hello, recently there had been some issues in audioread and librosa that 3-byte samples can be loaded in Python 3 but 2. The documentation says that the audioop.lin2lin function in Python 3 support 1-, 2-, 3-, 4-byte samples but only 1-, 2-, 4-byte

[Python-Dev] Implementation difference of audioop.lin2lin in Python2 and Python3

2016-12-13 Thread KH Luke Kim
Hello, recently there had been some issues in audioread and librosa that 3-byte samples can be loaded in Python 3 but 2. The documentation says that the audioop.lin2lin function in Python 3 support 1-, 2-, 3-, 4-byte samples but only 1-, 2-, 4-byte samples in Python 2. I wonder why 3-byte