diff options
author | Raymond Hettinger <python@rcn.com> | 2015-08-30 21:48:42 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2015-08-30 21:48:42 (GMT) |
commit | fe2f2876cea08f0d0c288def5f9b970c1139fe5f (patch) | |
tree | 02b10b2d942138f12120863df5ece7e828a72626 | |
parent | e0c8e2629417780e3c5b7a31b6ed2598e8748206 (diff) | |
download | cpython-fe2f2876cea08f0d0c288def5f9b970c1139fe5f.zip cpython-fe2f2876cea08f0d0c288def5f9b970c1139fe5f.tar.gz cpython-fe2f2876cea08f0d0c288def5f9b970c1139fe5f.tar.bz2 |
Make an example a little clearer
-rw-r--r-- | Doc/library/collections.rst | 1 |
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)]) |