[issue45006] Add data_offset field to ZipInfo

2021-10-06 Thread Ammar Askar
Ammar Askar added the comment: Could you explain your use-case for this feature in a bit more detail? zipfile is meant to be a relatively high level library to do common tasks such as reading/writing/listing files. The use case for `data_offset` proposed here seems to be relatively advanced

[issue45006] Add data_offset field to ZipInfo

2021-08-25 Thread Kelvin Zhang
Change by Kelvin Zhang : -- keywords: +patch pull_requests: +26408 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27961 ___ Python tracker ___ ___

[issue45006] Add data_offset field to ZipInfo

2021-08-25 Thread Kelvin Zhang
New submission from Kelvin Zhang : Currently python's zipfile module does not have a way query starting offset of compressed data. This might be handy when the user wants to copy compressed data as is. Therefore I propose adding a data_offset field to zipfile.ZipInfo, which stores the offset