Obtaining an object's instance based on its string repr (Python)
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1396668/python-get-object-by-id">Python: Get object by id</a>  </p>
</blockquote>



<p>Typically when you see the string representation of an instance it looks something like <code>&lt;module.space.Class @ 0x108181bc&gt;</code>. I am curious if it's possible to take this string and get a handle on the instance.</p>

<p>Something like</p>

<pre><code> obj_instance = get_instance_form_repr("&lt;module.space.Class @ 0x1aa031b&gt;")
</code></pre>

<p>I don't believe it could be possible but if it is, it would be really useful.</p>
