Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module.py
- ------------
- class a:
- def __init__(self, a):
- self.a = a
- def helping(self):
- self.a += 2 #<-- change to "self.a += 4" right after reload(module)
- print self.a
- something = a(200)
- something.helping()
- ------------
- >> import module
- 202
- >> reload(module) #right before executing this i changed the "self.a += 2 statement"
- 204
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement