title: How to get class instance using assigned "id" variable?
body: <p>Is it possible to get the <code>wooden_sword</code> object using the <code>id</code> variable in the <code>Item</code> class?</p>
  <pre><code>class Item:
      __ids = count(0)
  
      def __init__(self):
          self.id = next(self.__ids)
  
  
  class Weapon(Item):
      def __init__(self, **kwargs):
          super().__init__(**kwargs)
  
  
  wooden_sword = Weapon()
  </code></pre>