[docs] [issue26535] Minor typo in the docs for struct.unpack

Antony Lee report at bugs.python.org
Thu Mar 10 21:45:19 EST 2016


New submission from Antony Lee:

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)".

----------
assignee: docs at python
components: Documentation
messages: 261538
nosy: Antony.Lee, docs at python
priority: normal
severity: normal
status: open
title: Minor typo in the docs for struct.unpack
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26535>
_______________________________________


More information about the docs mailing list