Python - reference object in memory by address
<p>This is kind of a silly question, but I'm just curious about it.</p>

<p>Suppose I'm at the Python shell and I have some database object that I query.  I do:</p>

<p><code>db.query(queryString)</code></p>

<p>The query returns a response <code>&lt;QueryResult object at 0xffdf842c&gt;</code> or something like that.</p>

<p>But then I say "Oh! I forgot to put <code>result = db.query(queryString)</code> so that I can actually use the result of my query!"</p>

<p>Well isn't there some method that just lets me reference the object in memory?</p>

<p>Something like <code>result = reference('&lt;QueryResult object at 0xffdf842c&gt;')</code>?</p>
