Guidelines for use of the import statement
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1317624/should-i-use-from-package-import-utils-settings-or-from-import-utils-setti">Should I use &quot;from package import utils, settings&quot; or &quot;from . import utils, settings&quot;</a>  </p>
</blockquote>



<p>What are the guidelines about the choice between the following when importing from the python standard library?:</p>

<pre><code>import foo
from foo import bar
</code></pre>

<p>What are the considerations? Is it a footprint thing? Or just a potential name clash thing?</p>

<p>If a module had minimal string handling, would this be going too far?:</p>

<pre><code>from string import split
</code></pre>

<p>If a program has several modules, will results of an import done by one module be usable by subsequent modules in the program?</p>

<p>If an imported module is only required in cold code, is it considered good form to have that import buried inside the logic block containing the cold code? </p>
