title: How to construct relative url, given two absolute urls in Python
body: <p>Is there a builtin function to get url like this: <code>../images.html</code> given a base url like this: <code>http://www.example.com/faq/index.html</code> and a target url such as <code>http://www.example.com/images.html</code></p>
  
  <p>I checked urlparse module. What I want is counterpart of the urljoin() function.</p>