where is the __enter__ and __exit__ defined for zipfile?
<p>Based on the <a href="http://docs.python.org/reference/compound_stmts.html" rel="nofollow">with statement</a></p>

<ul>
<li>The context manager’s <strong>exit</strong>() is loaded for later use. </li>
<li>The context manager’s <strong>enter</strong>() method is invoked.</li>
</ul>

<p>I have seen one of the with usage with <a href="http://stackoverflow.com/questions/7533677/how-to-process-zip-file-with-python/7533721#7533721">zipfile</a></p>

<p>Question>
I have checked the source code of zipfile located here:</p>

<p>/usr/lib/python2.6/zipfile.py</p>

<p>I don't know where the <code>__enter__</code> and <code>__exit__</code> functions are defined?</p>

<p>Thank you</p>
