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 <>
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('')
>>> 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/", line 1026, in __init__
  File "/Users/jeremy/.pyenv/versions/3.5.2/lib/python3.5/", line 1089, in _RealGetContents
    endrec = _EndRecData(fp)
  File "/Users/jeremy/.pyenv/versions/3.5.2/lib/python3.5/", line 241, in _EndRecData, 2)
AttributeError: 'PosixPath' object has no attribute 'seek'
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: <>
2017-01-05 15:51:50jtf621linkissue28231 messages
2017-01-05 15:51:50jtf621create