Berker Peksag added the comment: PR 322 should make the example in msg284754 work:
>>> import pathlib, zipfile >>> f = pathlib.Path('spam.zip') >>> with zipfile.ZipFile(f) as zf: ... zf.namelist() ... ['LICENSE'] It doesn't implement full PathLike support, but it at least covers the use cases of Jeremy and Steve. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28231> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com