Lukas Lueg <knabberknusperh...@yahoo.de> added the comment: This is basically the same problem as with other bytes-orientated modules.
The choice is either to reject unicode and force the caller to use .encode() on all his strings (so 'password' is an instance of bytes and 'ch' an instance of int). I'd prefer that. Or to check if 'password' is a unicode-object and encode to default within zipfile. ---------- nosy: +ebfe _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue4871> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com