Message86284
| Author |
kristjan.jonsson |
| Recipients |
kristjan.jonsson, pitrou |
| Date |
2009年04月22日.10:26:01 |
| SpamBayes Score |
2.9360428e-05 |
| Marked as misclassified |
No |
| Message-id |
<1240395963.92.0.167145521264.issue5804@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Note, I thought of the "tail" argument to reflect the "unused_data"
member of the decompressobj(). But a more useful way is actually this:
result, offset = zlib.decompress(buffer, offset=0)
if offset<len(buffer):
result2, offset = zlib.decompress(buffer, offset=offset)
This avoids data copying as much as possible. The presence of a non-
default offset argument, would trigger the "tuple" return value.
We could add the same argument to decompressobj.decompress, and
add "unused_offset" member there for symmetry.
Any thoughts? |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年04月22日 10:26:04 | kristjan.jonsson | set | recipients:
+ kristjan.jonsson, pitrou |
| 2009年04月22日 10:26:03 | kristjan.jonsson | set | messageid: <1240395963.92.0.167145521264.issue5804@psf.upfronthosting.co.za> |
| 2009年04月22日 10:26:02 | kristjan.jonsson | link | issue5804 messages |
| 2009年04月22日 10:26:01 | kristjan.jonsson | create |
|