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 -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/[email protected]/message/QNAXE4H6QIET5YFWABGRSTM4OO5NLURK/
Code of Conduct: http://python.org/psf/codeofconduct/