Eric V. Smith <e...@trueblade.com> added the comment:

My point is that shlex.join() shouldn’t convert any arguments to strings, no 
matter their type. Just like str.join() doesn’t, and for the same reason. 

Within the last few years there was a discussion on making str.join() 
auto-convert it’s arguments to str, and we decided not to, because it would 
mask too many bugs. I believe the same argument applies to shlex.join(). Path 
objects aren’t special enough to make an exception. 

There’s a proposal somewhere to also call str() on Path arguments to 
subprocess.run(). I’m opposed to that for the same reasons.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue45130>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to