Guest User

Untitled

a guest
Aug 10th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. How to upgrade Python objects after module reloading?
  2. class Point(object):
  3. def __init__(x, y):
  4. self.x = x
  5. self.y = y
  6.  
  7. @staticmethod
  8. def init_from_point(obj):
  9. return Point(obj.x, obj.y)
Add Comment
Please, Sign In to add comment