summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2008-01-09 03:13:20 (GMT)
committerRaymond Hettinger <python@rcn.com>2008-01-09 03:13:20 (GMT)
commitdc1854dec4a0e38d8fab79d771c14c7d170f5b76 (patch)
treec84ebdc499112153cf94c00ce35fec5d74da11e6
parentd4e5613c5f8d4b0a8a9ffae333b5b8f55563e1c0 (diff)
downloadcpython-dc1854dec4a0e38d8fab79d771c14c7d170f5b76.zip
cpython-dc1854dec4a0e38d8fab79d771c14c7d170f5b76.tar.gz
cpython-dc1854dec4a0e38d8fab79d771c14c7d170f5b76.tar.bz2
Fix typo
-rw-r--r--Doc/library/collections.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index e1514da..c383943 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -494,7 +494,7 @@ field names, the method and attribute names start with an underscore.
>>> 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::