Advertisement
Guest User

Untitled

a guest
Aug 20th, 2012
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.15 KB | None | 0 0
  1. class Shape(object):
  2.     def __dir__(self):
  3.         return ['area', 'perimeter', 'location']
  4. s = Shape()
  5. dir(s)
  6. ['area', 'perimeter', 'location']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement