On 2021-01-05 20:07, Mikhail V wrote:
I'd like to have an option to force the path separator for the "os.path.join()" method.
The urljoin method was made for the URL use case: from urllib.parse import urljoin urljoin('http://www.cwi.nl/%7Eguido/Python.html', 'FAQ.html') 'http://www.cwi.nl/%7Eguido/FAQ.html' From: https://docs.python.org/3/library/urllib.parse.html#urllib.parse.urljoin -Mike _______________________________________________ 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/QNAXE4H6QIET5YFWABGRSTM4OO5NLURK/ Code of Conduct: http://python.org/psf/codeofconduct/