Advertisement
Guest User

Untitled

a guest
Aug 24th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  1. obj = cls.__new__(cls)
  2. n = (List of attribute names)
  3. v = (List of attribute values)
  4.  
  5. for s in n:
  6. setattr(obj, s, v[s])
  7.  
  8. obj = cls.__new__(cls, v)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement