06.01.21 06:07, Mikhail V пише: > I know there is the "pathlib" module with all conversion methods, but > it's overkill for many > tasks. So I'd rather like to have an option to write for example: > > path = os.path.join (root, dir, sep = "posix") > > So that it joins with the forward slash even if run on Windows. > Also it seems that e.g. "os.path.split()" already supports both > separators, so I think this addition won't bring inconsistency into > the module and its usage.
Use posixpath. _______________________________________________ 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/SAMMJE5OKRPA64H4TFEMQ4KD3KF6VIIP/ Code of Conduct: http://python.org/psf/codeofconduct/