Message284754
This also affects python 3.5 on Windows and OSX.
Python 3.5.2 (default, Sep 21 2016, 15:07:18)
[GCC 4.2.1 Compatible Apple LLVM 7.3.0 (clang-703.0.31)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from pathlib import Path
>>> import zipfile
>>> f = Path('zipfile.zip')
>>> with zipfile.ZipFile(f) as zf:
... pass
...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/jeremy/.pyenv/versions/3.5.2/lib/python3.5/zipfile.py", line 1026, in __init__
self._RealGetContents()
File "/Users/jeremy/.pyenv/versions/3.5.2/lib/python3.5/zipfile.py", line 1089, in _RealGetContents
endrec = _EndRecData(fp)
File "/Users/jeremy/.pyenv/versions/3.5.2/lib/python3.5/zipfile.py", line 241, in _EndRecData
fpin.seek(0, 2)
AttributeError: 'PosixPath' object has no attribute 'seek' |
|
Date |
User |
Action |
Args |
2017-01-05 15:51:50 | jtf621 | set | recipients:
+ jtf621, brett.cannon, ethan.furman, berker.peksag, serhiy.storchaka |
2017-01-05 15:51:50 | jtf621 | set | messageid: <1483631510.62.0.706531189302.issue28231@psf.upfronthosting.co.za> |
2017-01-05 15:51:50 | jtf621 | link | issue28231 messages |
2017-01-05 15:51:50 | jtf621 | create | |
|