title: AttributeError: module 'urllib' has no attribute 'parse'
body: <p>python 3.5.2</p>
  
  <p><strong>code 1</strong></p>
  
  <pre><code>import urllib
  s = urllib.parse.quote('"')
  print(s) 
  </code></pre>
  
  <p>it gave this error: </p>
  
  <blockquote>
    <p>AttributeError: module 'urllib' has no attribute 'parse'</p>
  </blockquote>
  
  <p><strong>code 2</strong></p>
  
  <pre><code>from urllib.parse import quote  
  # import urllib
  # s = urllib.parse.quote('"')
  s = quote('"')
  print(s) 
  </code></pre>
  
  <p>it works...</p>
  
  <p><strong>code3</strong></p>
  
  <pre><code>from flask import Flask
  # from urllib.parse import quote  
  # s = quote('"')
  import urllib
  s = urllib.parse.quote('"')
  print(s) 
  </code></pre>
  
  <p>it works,too. because of flask? </p>
  
  <p>Why I don't have the error anymore? is it a bug ?</p>