class Node(object):
def __init__(self, data):
self.data = data
if __name__ == "__main__":
a = Node(5)
print a # prints __main__.Node object at 0x025C7530
print a.__dict__ # how can I turn this back into the previous line?
Is there anyway to turn the dict back into the object?
For some types of objects, you can get an identical object (not the object itself, but a copy):