title: Passing dictionaries to __init__
body: <p>I am making a class in Python, and want to pass a dictionary as an argument to <strong>init</strong> and copy it to an instance variable. Something like this: </p>
  
  <pre><code>class foo:
      def __init__(self, dictionary): 
          self.copy = dictionary
  </code></pre>
  
  <p>But for some reason it is not passing the dictionary, maybe just its type? For instance when I try print(dictionary) in <strong>init</strong> it just prints "class 'dict'" instead of the actual dictionary. Not sure why this is happening, and I would greatly appreciate any help!</p>