Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- obj = cls.__new__(cls)
- n = (List of attribute names)
- v = (List of attribute values)
- for s in n:
- setattr(obj, s, v[s])
- obj = cls.__new__(cls, v)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement