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 serhiy.storchaka
Recipients brett.cannon, ethan.furman, serhiy.storchaka
Date 2016-09-21.08:11:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1474445503.11.0.219964117103.issue28231@psf.upfronthosting.co.za>
In-reply-to
Content
Shouldn't the ZipFile.filename attribute be converted to str?

If add support of pathlib, maybe add support of bytes?

The file name of ZipFile is only a part of the issue. There are other uses of file paths: paths for added files, path for extracted directory.

And there are internal paths in zip archive. Maybe it is worth to introduce new path-like type for them and provide pathlib-like interface to ZipFile. But this is separate not easy issue.
History
Date User Action Args
2016-09-21 08:11:43serhiy.storchakasetrecipients: + serhiy.storchaka, brett.cannon, ethan.furman
2016-09-21 08:11:43serhiy.storchakasetmessageid: <1474445503.11.0.219964117103.issue28231@psf.upfronthosting.co.za>
2016-09-21 08:11:43serhiy.storchakalinkissue28231 messages
2016-09-21 08:11:43serhiy.storchakacreate