title: Python: save class object in dictionary
body: <p>I'm trying to save an class object into dictionary</p>
  
  <p>I've something like this</p>
  
  <pre><code>class Thing:
  
      def __init__(self, symbol, age, pos):
  
          worldMap = {}
  
          self.symbol = symbol
          self.age = age
          self.pos = pos
  
  
  t1 = Thing('c', 2, '')
  t2 = ..
  
  t1.worldMap
  </code></pre>
  
  <p>When I try to add t1 to the worldMap it doesn't work. What am I missing here?</p>