gh-127847: Fix position in the special-cased zipfile seek#127856
gh-127847: Fix position in the special-cased zipfile seek#127856jaraco merged 7 commits intopython:mainfrom
Conversation
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
ZeroIntensity
left a comment
There was a problem hiding this comment.
This is a great first contribution, thanks :)
I have a few nitpicks, mostly related to some high-level triage tidbits.
Misc/NEWS.d/next/Library/2024-12-12-07-27-51.gh-issue-127847.ksfNKM.rst
Outdated
Show resolved
Hide resolved
b52d390 to
57af21a
Compare
|
Nice tests and the bug report was great. The fix I suggested was incomplete (I forgot
cpython/Lib/zipfile/__init__.py Lines 816 to 835 in 8bbd379
|
|
Ah, got it. I used an if/else, just to avoid doing two seeks unnecessarily - do you think that's better? (Though an extra seek worked fine, too, so I can change it to that.) |
|
I like the single seek you've done. Nice work! (The CI tool failed for macos-13 but that looks unrelated to these changes. The failing test was: |
Co-authored-by: Peter Bierma <zintensitydev@gmail.com>
613945d to
4cfd007
Compare
|
Just rebased, and everything passed now. |
ZeroIntensity
left a comment
There was a problem hiding this comment.
LGTM, thanks for the fix :)
jaraco
left a comment
There was a problem hiding this comment.
LGTM. Thanks for the clean contribution and others for the thorough review.
…onGH-127856) --------- (cherry picked from commit 7ed6c5c) Co-authored-by: Dima Ryazanov <dima@bucket.xxx> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Peter Bierma <zintensitydev@gmail.com> Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
…onGH-127856) --------- (cherry picked from commit 7ed6c5c) Co-authored-by: Dima Ryazanov <dima@bucket.xxx> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Peter Bierma <zintensitydev@gmail.com> Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
|
GH-128225 is a backport of this pull request to the 3.13 branch. |
|
GH-128226 is a backport of this pull request to the 3.12 branch. |
…127856) (#128226) gh-127847: Fix position in the special-cased zipfile seek (GH-127856) --------- (cherry picked from commit 7ed6c5c) Co-authored-by: Dima Ryazanov <dima@bucket.xxx> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Peter Bierma <zintensitydev@gmail.com> Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
…127856) (#128225) gh-127847: Fix position in the special-cased zipfile seek (GH-127856) --------- (cherry picked from commit 7ed6c5c) Co-authored-by: Dima Ryazanov <dima@bucket.xxx> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Peter Bierma <zintensitydev@gmail.com> Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
|
Congrats on your first contribution @dimaryaz |
|
Thanks everyone! |
…on#127856) --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Peter Bierma <zintensitydev@gmail.com> Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
Uh oh!
There was an error while loading. Please reload this page.