[Python-checkins] cpython (2.7): #12093: fix typo in struct doc. Patch by Sandro Tosi.
ezio.melotti
python-checkins at python.org
Tue May 17 04:18:42 CEST 2011
http://hg.python.org/cpython/rev/874309ce6e62
changeset: 70167:874309ce6e62
branch: 2.7
user: Ezio Melotti <ezio.melotti at gmail.com>
date: Tue May 17 05:17:35 2011 +0300
summary:
#12093: fix typo in struct doc. Patch by Sandro Tosi.
files:
Doc/library/struct.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/library/struct.rst b/Doc/library/struct.rst
--- a/Doc/library/struct.rst
+++ b/Doc/library/struct.rst
@@ -314,7 +314,7 @@
>>> 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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list