Steven D'Aprano writes: > URLs are also a lot more complicated than file paths,
It may be just me, but I would say the opposite: URLs are simpler because they follow unambiguous rules. There is no "realpath" for URLs, they're WYSIWYG. "." and ".." have unambiguous semantics in URLs[1], which are implementable as string transformations. > so you should be using urllib to assemble the parts: Following the rules is not entirely trivial, though, so +1000 here. Steve Footnotes: [1] Up to server implementation, but that's explicitly out of scope when you're talking about the URL itself. _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/JDNJFWW255MHPWQHF2DHDT3FHLUPBJ4M/ Code of Conduct: http://python.org/psf/codeofconduct/