title: What type are file objects in Python?
body: <p>How can I use <code>isinstance</code> to determine the 'type' of a file object, such as in the expression:</p>
  <pre class="lang-py prettyprint-override"><code>&gt;&gt;&gt; open(file)
  </code></pre>