#12093: fix typo in struct doc. Patch by Sandro Tosi.

This commit is contained in:
Ezio Melotti 2011-05-17 05:17:35 +03:00
parent 4dd89ce6bf
commit b429c57481
1 changed files with 1 additions and 1 deletions

View File

@ -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