is there a way to look at the code behind an __enter__() function in the python interpreter?
<p>question pretty much says it all.</p>

<p>i'd like to look at the code in this fashion:</p>

<pre><code>&gt;&gt;&gt;f = open("x.txt")
&gt;&gt;&gt;print contents of f.__enter__() #&lt;- how can I do this?
</code></pre>
