title: Trying to download a file by URL with urllib.retrieve: 'module' object has no attribute 'retrieve'
body: <p>This is my first ever Python script, so I assume I'm doing something wrong. But I can't find a clue in any of the tutorials or examples. The following code (so to speak):</p>
  
  <pre><code>import urllib
  
  urllib.retrieve("http://zlib.net/zlib-1.2.8.tar.gz")
  </code></pre>
  
  <p>throws an error</p>
  
  <blockquote>
    <p>AttributeError: 'module' object has no attribute 'retrieve'</p>
  </blockquote>
  
  <p>How do I fix it? This is Python 3.3.</p>