title: Should I use `import os.path` or `import os`?
body: <p>According to the <a href="http://docs.python.org/library/os.path.html" rel="nofollow noreferrer">official documentation</a>, <code>os.path</code> is a module. Thus, what is the preferred way of importing it?</p>
  <pre><code># Should I always import it explicitly?
  import os.path
  </code></pre>
  <p>Or...</p>
  <pre><code># Is importing os enough?
  import os
  </code></pre>
  <p>Please DON'T answer &quot;importing <code>os</code> works for me&quot;. I know, it works for me too right now (as of Python 2.6). What I want to know is any official recommendation about this issue. So, if you answer this question, please <strong>post your references</strong>.</p>