[docs] [issue24110] zipfile.ZipFile.write() does not accept bytes arcname

Patrik Dufresne report at bugs.python.org
Sat Jan 2 15:12:28 EST 2016

Patrik Dufresne added the comment:

I'm converting my project into python3. I'm encountering issue with zipfile encoding. Look like, it only support unicode path. This is a huge issue since path are, by definition, bytes. You may store a file name with an invalid character without issue on the filesystem.

As such, arcname should support bytes.

Like, Tar, zip file format doesn't define a specific encoding. You may store filename as bytes.

nosy: +Patrik Dufresne

Python tracker <report at bugs.python.org>

More information about the docs mailing list