Brett Cannon added the comment: Here is a proposed patch that does what I was thinking. What do you think?
As for updating zipfile, it's possible but slightly risky because of backwards-compatibility. Since this is all-new code there is no worry about breaking someone's pre-existing code because they were relying on str being treated in a special way instead of the file-like object case. ---------- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file38472/duck_typed_zipapp.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue23657> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com