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 Antony.Lee
Recipients Antony.Lee, docs@python
Date 2016-03-11.02:45:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1457664319.61.0.475981364973.issue26535@psf.upfronthosting.co.za>
In-reply-to
Content
The docstring of struct.unpack currently reads

Unpack from the buffer buffer (presumably packed by pack(fmt, ...)) according to the format string fmt. The result is a tuple even if it contains exactly one item. The buffer must contain exactly the amount of data required by the format (len(bytes) must equal calcsize(fmt)).

It should probably read "len(buffer) must equal calcsize(fmt)".
History
Date User Action Args
2016-03-11 02:45:19Antony.Leesetrecipients: + Antony.Lee, docs@python
2016-03-11 02:45:19Antony.Leesetmessageid: <1457664319.61.0.475981364973.issue26535@psf.upfronthosting.co.za>
2016-03-11 02:45:19Antony.Leelinkissue26535 messages
2016-03-11 02:45:18Antony.Leecreate