cpython
cpython copied to clipboard
gh-122356: restore the position of a file-like object after `zipfile.is_zipfile`
Not sure if you want it to be backported to 3.12 and 3.13, since the corresponding PR (https://github.com/python/cpython/pull/26488) for tarfile
was not backported.
- Issue: gh-122356