Ian Mallett wrote:
As far as I know, the os.path version does a string conversion to the platform-preferred way of specifying paths.

No, it doesn't -- that only happens if you use normpath():

>>> os.path.join("abc/def", "ghi")
'abc/def\\ghi'
>>> os.path.normpath('abc/def\\ghi')
'abc\\def\\ghi'

"\" was just not a good idea, and Windows ought to give up already

It's not just Windows itself that would have to give it up,
there's application software that (incorrectly) believes "\"
to be the only true path separator on Windows.

--
Greg

Reply via email to