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 kristjan.jonsson
Recipients kristjan.jonsson
Date 2010-10-27.10:36:48
SpamBayes Score 7.297083e-07
Marked as misclassified No
Message-id <1288175813.33.0.0310491559114.issue10212@psf.upfronthosting.co.za>
In-reply-to
Content
When doing socket IO, it is beneficial to use a bytearra() and then using sock.recv_into() to avoid moving data about.
However, many useful functions still don't accept new style buffers, such as the bytearray and memoryview.  In particular, the struct module cannot unpack from them, and the StringIO doesn't accept them as input.

The attached patch adds new-buffer support to the struct module and cStringIO.
History
Date User Action Args
2010-10-27 10:36:53kristjan.jonssonsetrecipients: + kristjan.jonsson
2010-10-27 10:36:53kristjan.jonssonsetmessageid: <1288175813.33.0.0310491559114.issue10212@psf.upfronthosting.co.za>
2010-10-27 10:36:50kristjan.jonssonlinkissue10212 messages
2010-10-27 10:36:50kristjan.jonssoncreate