Re: [Python-3000] bytearray incompatible with bytes

2008-08-29 Thread Guido van Rossum
2008/8/29 Pyry Pakkanen <[EMAIL PROTECTED]>: > Hello list! First post. Welcome! > I ran in to this problem with ossaudiodev module when trying to copy > the input audio to output: > > import ossaudiodev > dev = ossaudiodev.open("rw") > dev.setparameters(ossaudiodev.AFMT_S16_NE,2,44100) > for i in

Re: [Python-3000] bytearray incompatible with bytes

2008-08-29 Thread Aahz
On Fri, Aug 29, 2008, Pyry Pakkanen wrote: > > It runs fine in 2.5 but in 3.0b3 it gives the following exception: > Traceback (most recent call last): > File "myscripts/ossthrough.py", line 5, in > dev.write(dev.read(1024)) > TypeError: write() argument 1 must be bytes or read-only buffer,