Author eryksun
Recipients docs@python, eryksun, gaborjbernat, keller00, paul.moore, steve.dower, tim.golden, vinay.sajip, zach.ware
Date 2020-10-18.19:19:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1603048784.25.0.626457275193.issue42041@roundup.psfhosted.org>
In-reply-to
Content
> I don't think we should document this level of detail

But a lot of it -- most of it -- is also strange behavior that no one would expect without reading about it somewhere. Most users of subprocess.Popen() will never wade through the documentation of CreateProcessW, SearchPathW, ShellExecuteExW, and cmd.exe -- to the extent that the behavior is usefully and correctly documented by Microsoft.

One of the reasons I bother writing it out in detail here is to make the case for always using shutil.which(), regardless of the value of `shell` (unless shell=True is being used beyond the filesystem scope). We have complete control of the implementation and documentation of shutil.which(). I don't want that advice to be narrowed down to just talking about running "python".
History
Date User Action Args
2020-10-18 19:19:44eryksunsetrecipients: + eryksun, paul.moore, vinay.sajip, tim.golden, docs@python, zach.ware, steve.dower, gaborjbernat, keller00
2020-10-18 19:19:44eryksunsetmessageid: <1603048784.25.0.626457275193.issue42041@roundup.psfhosted.org>
2020-10-18 19:19:44eryksunlinkissue42041 messages
2020-10-18 19:19:44eryksuncreate