Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Bob:
- attr = 34
- def foobar(self):
- print self.attr
- b = Bob()
- b.foobar()
- b.attr = 3
- b.foobar()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement