mirror of https://github.com/python/cpython
#12093: fix typo in struct doc. Patch by Sandro Tosi.
This commit is contained in:
parent
4dd89ce6bf
commit
b429c57481
|
@ -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…
Reference in New Issue