I have a class defined as follows:
class Table:
order = {}
id = None
state = None
I have a dictionary which contains the key value pairs which has key indices and values are table objects.
dict{1: table_object}
Now I want to get the table object and copy the details to another object, something like:
new_object = dict[1]
How do I change the class or copy the details to another object?