homepage

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 martin.panter
Recipients amaury.forgeotdarc, gregory.p.smith, kristjan.jonsson, martin.panter, nadeem.vawda, pitrou, r.david.murray, rbcollins
Date 2015年01月14日.22:27:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1421274433.79.0.526811757381.issue5804@psf.upfronthosting.co.za>
In-reply-to
Content
A different test case for "unused_data" attribute was added in 2012 for Issue 16350, so that part is no longer needed.
If this feature goes ahead, it might be nice to also update the bzip and LZMA modules for consistency.
In Python 3, the equivalent of the buffer() option would look like this, assuming the memory view is in byte format:
zlib.decompress(memoryview(source)[unused_offset:])
Another option would be to copy some paint from the struct.unpack_from() bikeshed:
[data, offset] = zlib.decompress_from(buffer, offset)
History
Date User Action Args
2015年01月14日 22:27:13martin.pantersetrecipients: + martin.panter, gregory.p.smith, amaury.forgeotdarc, pitrou, kristjan.jonsson, rbcollins, nadeem.vawda, r.david.murray
2015年01月14日 22:27:13martin.pantersetmessageid: <1421274433.79.0.526811757381.issue5804@psf.upfronthosting.co.za>
2015年01月14日 22:27:13martin.panterlinkissue5804 messages
2015年01月14日 22:27:13martin.pantercreate

AltStyle によって変換されたページ (->オリジナル) /