This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author alexia
Recipients alexia, eric.smith
Date 2021-09-07.19:03:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1631041383.45.0.588644109955.issue45130@roundup.psfhosted.org>
In-reply-to
Content
While it may be primarily intended to combine output from shlex.split() again, IMO it's useful for manually constructed command lines as well, for example displaying instructions to a user where a path may contain spaces and special characters and needs to be properly escaped.

As for converting int to str, since subprocess.run() does not do that, shlex.split() does not need to do so either. I never mentioned that, and while I could see that being useful as well, that would have to be a separate discussion.

There's more of a case for automatic conversion for Path objects, which are supposed to work seamlessly in most places where strings are accepted. But such quirks of certain functions not accepting them and being forced to convert to str manually makes pathlib a little annoying to use compared to os.path.
History
Date User Action Args
2021-09-07 19:03:03alexiasetrecipients: + alexia, eric.smith
2021-09-07 19:03:03alexiasetmessageid: <1631041383.45.0.588644109955.issue45130@roundup.psfhosted.org>
2021-09-07 19:03:03alexialinkissue45130 messages
2021-09-07 19:03:03alexiacreate