This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jtf621
Recipients berker.peksag, brett.cannon, ethan.furman, jtf621, serhiy.storchaka
Date 2017-01-05.15:51:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1483631510.62.0.706531189302.issue28231@psf.upfronthosting.co.za>
In-reply-to
Content
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'
History
Date User Action Args
2017-01-05 15:51:50jtf621setrecipients: + jtf621, brett.cannon, ethan.furman, berker.peksag, serhiy.storchaka
2017-01-05 15:51:50jtf621setmessageid: <1483631510.62.0.706531189302.issue28231@psf.upfronthosting.co.za>
2017-01-05 15:51:50jtf621linkissue28231 messages
2017-01-05 15:51:50jtf621create