summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2011-06-01 23:01:21 (GMT)
committerRaymond Hettinger <python@rcn.com>2011-06-01 23:01:21 (GMT)
commit88fc66179b1d05f95cb7ac58f4bceef366d0ff11 (patch)
treec4ee9977b8bf2f17de0de8643a1f96f8b54bd909 /Doc
parent690d4ae8bf6e930538cf7d23ff3ff09eb1f875ed (diff)
downloadcpython-88fc66179b1d05f95cb7ac58f4bceef366d0ff11.zip
cpython-88fc66179b1d05f95cb7ac58f4bceef366d0ff11.tar.gz
cpython-88fc66179b1d05f95cb7ac58f4bceef366d0ff11.tar.bz2
Cleanup example
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/functions.rst9
1 files changed, 4 insertions, 5 deletions
diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index 7a3a2d5..57748b6 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -306,11 +306,10 @@ available. They are listed here in alphabetical order.
'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::