[Python-checkins] cpython (2.7): Make an example a little clearer

raymond.hettinger python-checkins at python.org
Sun Aug 30 23:48:54 CEST 2015


https://hg.python.org/cpython/rev/62a3c600f3cf
changeset: 97556:62a3c600f3cf
branch: 2.7
parent: 97544:3ef2d694e976
user: Raymond Hettinger <python at rcn.com>
date: Sun Aug 30 14:48:42 2015 -0700
summary:
 Make an example a little clearer
files:
 Doc/library/collections.rst | 1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -696,6 +696,7 @@
 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)])
 
-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /