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