Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def change(self, v, op='='):
- assert op in ('=', '+=', '-=') and isinstance(v, int)
- # ...
- exec('self.v %s %s' % (op, v))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement