New submission from Kristján Valur Jónsson <krist...@ccpgames.com>:
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. ---------- components: Interpreter Core files: newbuffer.patch keywords: needs review, patch messages: 119687 nosy: krisvale priority: normal severity: normal status: open title: struct.unpack and cStringIO.StringIO don't support new buffer type: behavior versions: Python 2.7 Added file: http://bugs.python.org/file19382/newbuffer.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10212> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com