title: Why do Python modules sometimes not import their sub-modules?
body: <p>I noticed something weird today I would like explained. I wasn't 100% sure how to even phrase this as a question, so google is out of the question. The logging module does not have access to the module logging.handlers for some odd reason. Try it yourself if you don't believe me:</p>
  
  <pre><code>&gt;&gt;&gt; import logging
  &gt;&gt;&gt; logging.handlers
  Traceback (most recent call last):
    File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  AttributeError: 'module' object has no attribute 'handlers'
  &gt;&gt;&gt; import logging.handlers
  &gt;&gt;&gt; logging.handlers
  &lt;module 'logging.handlers' from '/usr/lib/python2.6/logging/handlers.pyc'&gt;
  </code></pre>
  
  <p>Can anyone explain why this happens?</p>