title: Getting the attribute name that the created object will be given
body: <p>Before I ask this, do note: I want this for debugging purposes. I know that this is going to be some bad black magic, but I want to use it just during debugging so I could identify my objects more easily.</p>
  
  <p>It's like this. I have some object from class <code>A</code> that creates a few <code>B</code> instances as attributes:</p>
  
  <pre><code>class A(object):
      def __init__(self)
          self.vanilla_b = B()
          self.chocolate_b = B()
  
  class B(object):
      def __init__(self):
          # ...
  </code></pre>
  
  <p>What I want is that in <code>B.__init__</code>, it will figure out the <code>"vanilla_b"</code> or whatever attribute name it was given, and then put that as the <code>.name</code> attribute to this specific <code>B</code>.</p>
  
  <p>Then in debugging when I see some <code>B</code> object floating around, I could know which one it is.</p>
  
  <p>Is there any way to do this?</p>