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 ncoghlan
Recipients docs@python, gregory.p.smith, ncoghlan, r.david.murray, takluyver
Date 2016-05-19.01:36:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1463621811.03.0.321573194108.issue27050@psf.upfronthosting.co.za>
In-reply-to
Content
For reference, http://bugs.python.org/issue13237 covers the original change to emphasise the convenience functions over the full flexibility of Popen. The intent behind that reorganisation was to make it straightforward to get started with the module without needing to first learn what a pipe is (or much of anything about command invocation other than the value of breaking things up into lists to ensure correct quoting). The direct link to the Popen docs in the introductory text was intended to make it easy for advanced users to skip directly to the full Popen docs.

In that context, the three convenience operations are "I don't really care if this works or not", "complain loudly if this doesn't work" and "capture the command output, while complaining loudly if it doesn't work". (Not coincidentally, these are roughly comparable to the operations supported by Perl's system() command and backtick expressions, only with exceptions taking the place of the "$?" magic variable)

Once a user understands what a pipe is well enough to have an opinion on the usefulness of operations other than the 3 basic ones, then I agree run() makes for a nice improvement over using Popen objects directly (thank you Thomas!), but it's still lower level than the convenience APIs (since you need more prior knowledge in order to use it effectively).

I do like David's suggestion of an introductory table providing quick links to the rest of the documentation. Something in the style of the itertools docs would likely be most suitable: https://docs.python.org/3/library/itertools.html

Also +1 on thrashing out the details at the PyCon US sprints, although I'll aim to put an initial draft together before then (so Thomas has a chance to comment on it)
History
Date User Action Args
2016-05-19 01:36:51ncoghlansetrecipients: + ncoghlan, gregory.p.smith, r.david.murray, docs@python, takluyver
2016-05-19 01:36:51ncoghlansetmessageid: <1463621811.03.0.321573194108.issue27050@psf.upfronthosting.co.za>
2016-05-19 01:36:51ncoghlanlinkissue27050 messages
2016-05-19 01:36:49ncoghlancreate