This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients jtidman, serhiy.storchaka, terry.reedy
Date 2013-06-30.11:30:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1372591810.26.0.505144756159.issue11126@psf.upfronthosting.co.za>
In-reply-to
Content
I don't see anything wrong in current code. In first alternation data is an array of sampwidth-sized items and the number of written bytes is len(data) * self._sampwidth. In second alternation data is raw bytes object and the number of written bytes is just len(data).

Could you please provide a sample script which exposes the wrong behavior?
History
Date User Action Args
2013-06-30 11:30:10serhiy.storchakasetrecipients: + serhiy.storchaka, terry.reedy, jtidman
2013-06-30 11:30:10serhiy.storchakasetmessageid: <1372591810.26.0.505144756159.issue11126@psf.upfronthosting.co.za>
2013-06-30 11:30:10serhiy.storchakalinkissue11126 messages
2013-06-30 11:30:10serhiy.storchakacreate