title: os.path.basename works with URLs, why?
body: <pre><code>&gt;&gt;&gt; os.path.basename('http://example.com/file.txt')
  'file.txt'
  </code></pre>
  
  <p>.. and I thought <code>os.path.*</code> work only on local paths and not URLs? Note that the above example was run on Windows too .. with similar result.</p>