bpo-22908: Add seek and tell functionality to ZipExtFile by jjolly · Pull Request #4966 · python/cpython

@jjolly

- Added seek, tell, and seekable functions to ZipExtFile
  - Added internal variables to ZipExtFile that preserves original
    values in order to reset the zipfile to it's initial state
  - Raises io.UnsupportedOperation when accessed without a seekable file
    object
  - Could be optimized to seek within the _readbuffer

@jjolly

@jjolly

merwok

@jjolly

@jjolly

@jjolly

… object returned by ZipFile.open

@jjolly

raises ValueError in that case.

@gpshead