Message119687
| 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:53 | kristjan.jonsson | set | recipients:
+ kristjan.jonsson |
| 2010年10月27日 10:36:53 | kristjan.jonsson | set | messageid: <1288175813.33.0.0310491559114.issue10212@psf.upfronthosting.co.za> |
| 2010年10月27日 10:36:50 | kristjan.jonsson | link | issue10212 messages |
| 2010年10月27日 10:36:50 | kristjan.jonsson | create |
|