[issue23780] Surprising behaviour when passing list to os.path.join.

R. David Murray report at bugs.python.org
Thu Mar 26 16:58:27 CET 2015


R. David Murray added the comment:

No, I'm not going to write tests...my goal is to commit other people's patches, and I haven't even found time for that lately.  And like you, I'm not convinced the fix is needed.  There is one argument I can think  of in favor, though: currently code that doesn't raise an error on posix will raise an error on Windows, and there is some portability value in making this consistent.

(Side note: the fact that join works with things that look enough like strings is important, because I'm sure that there are pathlib-like libraries out there that pretend to be strings so that they can be used in things like path.join.)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23780>
_______________________________________


More information about the Python-bugs-list mailing list