]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Make an example a little clearer
authorRaymond Hettinger <python@rcn.com>
Sun, 30 Aug 2015 21:48:42 +0000 (14:48 -0700)
committerRaymond Hettinger <python@rcn.com>
Sun, 30 Aug 2015 21:48:42 +0000 (14:48 -0700)
Doc/library/collections.rst

index e08eb515b71354984eab7a6eca8d75386960af28..3c4c128dd5b3bcb0e9449f186ea591dd53276f8c 100644 (file)
@@ -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)])