Python, when import from module cmd I haven't all attribute
<p>When i import module urllib in cmd i have only magic fuctions but when I import this module from Spyder I have all attribute.
I'a adding printscreen of this.
Why can not I import all attribute?</p>

<p><a href="http://i.stack.imgur.com/h1PGf.png" rel="nofollow">enter image description here</a></p>

<p>To import all attributes of a module into the global namespace use <code>from module import *</code>. </p>

<p>While <code>dir()</code> simply lists the attributes of the global namespace, <code>dir(module)</code> lists the ones in the scope of the specific module.</p>

<p>Anyway, when you <code>import urllib</code> you can still reach all attributes if you specify the module name, e.g. <code>urllib.request</code>. </p>

python python-3.x cmd