summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2015-08-30 21:48:42 (GMT)
committerRaymond Hettinger <python@rcn.com>2015-08-30 21:48:42 (GMT)
commitfe2f2876cea08f0d0c288def5f9b970c1139fe5f (patch)
tree02b10b2d942138f12120863df5ece7e828a72626
parente0c8e2629417780e3c5b7a31b6ed2598e8748206 (diff)
downloadcpython-fe2f2876cea08f0d0c288def5f9b970c1139fe5f.zip
cpython-fe2f2876cea08f0d0c288def5f9b970c1139fe5f.tar.gz
cpython-fe2f2876cea08f0d0c288def5f9b970c1139fe5f.tar.bz2
Make an example a little clearer
-rw-r--r--Doc/library/collections.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index e08eb51..3c4c128 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -696,6 +696,7 @@ field names, the method and attribute names start with an underscore.
Return a new :class:`OrderedDict` which maps field names to their corresponding
values::
+ >>> p = Point(x=11, y=22)
>>> p._asdict()
OrderedDict([('x', 11), ('y', 22)])