Cleanup example

This commit is contained in:
Raymond Hettinger 2011-06-01 16:01:21 -07:00
parent 690d4ae8bf
commit 88fc66179b
1 changed files with 4 additions and 5 deletions

View File

@ -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::