Which is more efficient in Python: standard imports or contextual imports?
<p>I apologize in advance if this question seems remedial.</p>

<p>Which would be considered more efficient in Python:</p>

<p><strong>Standard import</strong></p>

<pre><code>import logging

try:
  ...some code...
exception Exception, e:
  logging.error(e)
</code></pre>

<p>...or...</p>

<p><strong>Contextual import</strong></p>

<pre><code>try:
  ...some code...
exception Exception, e:
  import logging
  logging.error(e)
</code></pre>
