[issue32035] Documentation of zipfile.ZipFile().writestr() fails to mention that 'data' may also be bytes

Serhiy Storchaka report at bugs.python.org
Sun Nov 18 14:11:19 EST 2018


Serhiy Storchaka <storchaka+cpython at gmail.com> added the comment:

Since the docstring contains more information, it is better to just copy words from the docstring to the documentation.

There are also other places where string is improperly used instead of bytes or the type is not specified. The note about file name encoding doesn't make sense in Python 3, since ZipFile.write() doesn't support bytes as a file name.

PR 10592 fixed this.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32035>
_______________________________________


More information about the Python-bugs-list mailing list