[issue34202] 3.6 ZipFile fails with Path

2018-07-23 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report! Support for path-like objects was added in 3.6.2. I think you either have 3.6.0 or 3.6.1 installed on your system. Please upgrade it to the latest bugfix release. With 3.6.6, I got the following results: >>> import zipfile >>> from

[issue34202] 3.6 ZipFile fails with Path

2018-07-23 Thread bbayles
Change by bbayles : -- nosy: +bbayles ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34202] 3.6 ZipFile fails with Path

2018-07-23 Thread Michael Kleehammer
New submission from Michael Kleehammer : ZipFile is documented to accept "path-like" objects but is failing when I try to create one. I've distilled it down to this small test: import zipfile from pathlib import Path path = Path('test.zip') zf = zipfile.ZipFile(path, 'w')