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 John Hagen
Recipients John Hagen, docs@python
Date 2016-06-14.00:42:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1465864941.05.0.345060177149.issue27311@psf.upfronthosting.co.za>
In-reply-to
Content
The function signature and description for zipfile.writestr is incorrect:

https://docs.python.org/3.5/library/zipfile.html#zipfile.ZipFile.writestr

See:
https://github.com/python/cpython/blob/master/Lib/zipfile.py#L1610

The documentation calls the parameter 'bytes', but the real parameter name is 'data'.

Looks like this was not fixed when the source changed to Python 3:
https://github.com/python/cpython/blob/2.7/Lib/zipfile.py#L1208
History
Date User Action Args
2016-06-14 00:42:21John Hagensetrecipients: + John Hagen, docs@python
2016-06-14 00:42:21John Hagensetmessageid: <1465864941.05.0.345060177149.issue27311@psf.upfronthosting.co.za>
2016-06-14 00:42:20John Hagenlinkissue27311 messages
2016-06-14 00:42:19John Hagencreate