![](https://secure.gravatar.com/avatar/3acb8bae5a2b5a28f6fe522a4ea9b873.jpg?s=120&d=mm&r=g)
Nov. 3, 2006
11:32 p.m.
Andrew Dalke schrieb:
import urlparse urlparse.urljoin("hello", "/world") '/world' urlparse.urljoin("hello", "slash/world") 'slash/world' urlparse.urljoin("hello", "slash//world") 'slash//world'
It does not make sense to me that these should be different.
Just in case this isn't clear from Steve's and Fredrik's post: The behaviour of this function is (or should be) specified, by an IETF RFC. If somebody finds that non-intuitive, that's likely because their mental model of relative URIs deviate's from the RFC's model. Of course, there is also the chance that the implementation deviates from the RFC; that would be a bug. Regards, Martin