[Python-checkins] r59868 - python/trunk/Doc/library/collections.rst
raymond.hettinger
python-checkins at python.org
Wed Jan 9 04:13:20 CET 2008
Author: raymond.hettinger
Date: Wed Jan 9 04:13:20 2008
New Revision: 59868
Modified:
python/trunk/Doc/library/collections.rst
Log:
Fix typo
Modified: python/trunk/Doc/library/collections.rst
==============================================================================
--- python/trunk/Doc/library/collections.rst (original)
+++ python/trunk/Doc/library/collections.rst Wed Jan 9 04:13:20 2008
@@ -494,7 +494,7 @@
>>> Color = namedtuple('Color', 'red green blue')
>>> Pixel = namedtuple('Pixel', Point._fields + Color._fields)
>>> Pixel(11, 22, 128, 255, 0)
- Pixel(x=11, y=22, red=128, green=255, blue=0)'
+ Pixel(x=11, y=22, red=128, green=255, blue=0)
To retrieve a field whose name is stored in a string, use the :func:`getattr`
function::
More information about the Python-checkins
mailing list