[issue1432] Strange behavior of urlparse.urljoin

Senthil report at bugs.python.org
Wed Nov 14 10:26:56 CET 2007


Senthil added the comment:

Not really.
RFC 1808, on which urlparse module is based, defines the following for
the PATH component when joining the relative URL to Base URL.


   Step 6: The last segment of the base URL's path (anything
           following the rightmost slash "/", or the entire path if no
           slash is present) is removed and the embedded URL's path is
           appended in its place. 

So, what is happening is As per design and as per RFC1808. This bug
report can be closed as Working as designed.

----------
nosy: +orsenthil

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1432>
__________________________________


More information about the Python-bugs-list mailing list