From: Raymond Hettinger Date: Sun, 30 Aug 2015 21:48:42 +0000 (-0700) Subject: Make an example a little clearer X-Git-Tag: v2.7.11rc1~190 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fe2f2876cea08f0d0c288def5f9b970c1139fe5f;p=thirdparty%2FPython%2Fcpython.git Make an example a little clearer --- diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst index e08eb515b713..3c4c128dd5b3 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)])