Python import xml does not include xml.etree.ElementTree
<p>I like to use full namespaces in python when it comes to modules/libraries for readability. I'm wondering why this doesn't work the the xml library. I figure <code>import xml</code> will also import etree and everything else in the namespace. At least that's behavior I've noticed for other modules.</p>

<pre><code>$ ptpython
&gt;&gt;&gt; import xml

&gt;&gt;&gt; dir(xml.etree.ElementTree)
Traceback (most recent call last):
File "&lt;stdin&gt;", line 1, in &lt;module&gt;
AttributeError: 'module' object has no attribute 'etree'
'module' object has no attribute 'etree'

&gt;&gt;&gt; import xml.etree.ElementTree

&gt;&gt;&gt; dir(xml.etree.ElementTree)
['Comment', 'Element', 'ElementPath', 'ElementTree', 'HTML_EMPTY', 'PI',...]
</code></pre>

<p>Two questions:</p>

<ol>
<li>Why is this happening with the xml library?</li>
<li>Is there a way to import it all with something short like <code>import xml</code>?</li>
</ol>