https://stackoverflow.com/questions/61517/python-dictionary-from-an-objects-fields
instead of x.__dict__, it's actually more pythonic to use vars(x).
x.__dict__
vars(x)
No comments:
Post a Comment