[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 to beginning of compressed data.

--
components: Library (Lib)
messages: 400306
nosy: zhangxp1998
priority: normal
severity: normal
status: open
title: Add data_offset field to ZipInfo
type: enhancement
versions: Python 3.11

___
Python tracker 
<https://bugs.python.org/issue45006>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
<https://bugs.python.org/issue45006>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com