[Python-checkins] cpython (2.7): Cleanup example

raymond.hettinger python-checkins at python.org
Thu Jun 2 01:01:30 CEST 2011


http://hg.python.org/cpython/rev/bbaf419e7d0a
changeset: 70598:bbaf419e7d0a
branch: 2.7
user: Raymond Hettinger <python at rcn.com>
date: Wed Jun 01 16:01:21 2011 -0700
summary:
 Cleanup example
files:
 Doc/library/functions.rst | 9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -306,11 +306,10 @@
 'unpack', 'unpack_from']
 >>> class Shape(object):
 def __dir__(self):
- return ['area', 'perimter', 'location']
-
- >>> f = Shape()
- >>> dir(f)
- ['area', 'perimter', 'location']
+ return ['area', 'perimeter', 'location']
+ >>> s = Shape()
+ >>> dir(s)
+ ['area', 'perimeter', 'location']
 
 .. note::
 
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

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