gh-136170: Revert adding ZipFile.data_offset#136950
Conversation
)" This reverts commit 0788948.
ZipFile.data_offsetZipFile.data_offset
gpshead
left a comment
There was a problem hiding this comment.
I added a news entry for completeness as someone reading the verbose news could find the earlier news entry and wonder otherwise.
Misc/NEWS.d/next/Library/2025-07-21-22-35-50.gh-issue-136170.QUlc78.rst
Outdated
Show resolved
Hide resolved
|
I've updated the NEWS entry to use the exact versioning as in PEP-745. |
|
Thanks @emmatyping for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
* Revert "pythongh-84481: Make ZipFile.data_offset more robust (pythonGH-132178)" This reverts commit 6cd1d6c. * Revert "pythongh-84481: Add ZipFile.data_offset attribute (pythonGH-132165)" This reverts commit 0788948. --------- (cherry picked from commit 6bf1c0a) Co-authored-by: Emma Smith <emma@emmatyping.dev> Co-authored-by: Gregory P. Smith <greg@krypto.org>
|
GH-136955 is a backport of this pull request to the 3.14 branch. |
Thanks! That's a good idea. |
…36955) gh-136170: Revert adding `ZipFile.data_offset` (GH-136950) * Revert "gh-84481: Make ZipFile.data_offset more robust (GH-132178)" This reverts commit 6cd1d6c. * Revert "gh-84481: Add ZipFile.data_offset attribute (GH-132165)" This reverts commit 0788948. --------- (cherry picked from commit 6bf1c0a) Co-authored-by: Emma Smith <emma@emmatyping.dev> Co-authored-by: Gregory P. Smith <greg@krypto.org>
|
- The `data_offset` attribute is retracted in 3.14rc: ref: python/cpython#136950
* Revert "pythongh-84481: Make ZipFile.data_offset more robust (python#132178)" This reverts commit 6cd1d6c. * Revert "pythongh-84481: Add ZipFile.data_offset attribute (python#132165)" This reverts commit 0788948. --------- Co-authored-by: Gregory P. Smith <greg@krypto.org>
* Revert "pythongh-84481: Make ZipFile.data_offset more robust (python#132178)" This reverts commit 6cd1d6c. * Revert "pythongh-84481: Add ZipFile.data_offset attribute (python#132165)" This reverts commit 0788948. --------- Co-authored-by: Gregory P. Smith <greg@krypto.org>
…-136950) (python#136955) pythongh-136170: Revert adding `ZipFile.data_offset` (pythonGH-136950) * Revert "pythongh-84481: Make ZipFile.data_offset more robust (pythonGH-132178)" This reverts commit 6cd1d6c. * Revert "pythongh-84481: Add ZipFile.data_offset attribute (pythonGH-132165)" This reverts commit 0788948. --------- (cherry picked from commit 6bf1c0a) Co-authored-by: Emma Smith <emma@emmatyping.dev> Co-authored-by: Gregory P. Smith <greg@krypto.org>
As reported in #136170,
ZipFile.data_offsetisn't always correct depending on how one measures offsets. With 3.14rc1 tomorrow, I decided it would be best to push this to 3.15 and take more time to think about the feature and it's implementation.This PR reverts PRs #132165 and #132178.
Note that I had to resolve a merge conflict in
ZipFile._RealGetContentsdue to #134250 landing after the two PRs addingdata_offset, so this isn't quite a clean revert of the two above PRs.📚 Documentation preview 📚: https://cpython-previews--136950.org.readthedocs.build/