Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Shape(object):
- def __dir__(self):
- return ['area', 'perimeter', 'location']
- s = Shape()
- dir(s)
- ['area', 'perimeter', 'location']
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement