title: constructor inheriting self python
body: <p>I made a class which looks something like.</p>
  
  <pre><code>class NewInt:
    def __init__(self, x,y):
      self.holders = {"x":x,"y":y}
  </code></pre>
  
  <p>Now, I have a number say a dictionary. So everything is exactly same</p>
  
  <p>except its not NewInt but a dict.Somethng like</p>
  
  <pre><code> A  {"x": 3,"y":4}
  </code></pre>
  
  <p>So it is exactly of type NewInt except its a dictionary.</p>
  
  <p>Is there a way i can do something like </p>
  
  <pre><code>this_int = NewInt(A)
  </code></pre>
  
  <p>I forgot but there was a special name to such constructor where assignment is done ??
  Thanks</p>