mirror of
https://github.com/python/cpython.git
synced 2025-10-02 05:12:23 +00:00
#12093: fix typo in struct doc. Patch by Sandro Tosi.
This commit is contained in:
parent
4dd89ce6bf
commit
b429c57481
1 changed files with 1 additions and 1 deletions
|
@ -314,7 +314,7 @@ the result in a named tuple::
|
|||
|
||||
>>> from collections import namedtuple
|
||||
>>> Student = namedtuple('Student', 'name serialnum school gradelevel')
|
||||
>>> Student._make(unpack('<10sHHb', s))
|
||||
>>> Student._make(unpack('<10sHHb', record))
|
||||
Student(name='raymond ', serialnum=4658, school=264, gradelevel=8)
|
||||
|
||||
The ordering of format characters may have an impact on size since the padding
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue