[Python-ideas] shutil.runret and shutil.runout
Dirkjan Ochtman
dirkjan at ochtman.nl
Fri Feb 24 11:58:21 CET 2012
More information about the Python-ideas mailing list
Fri Feb 24 11:58:21 CET 2012
- Previous message: [Python-ideas] shutil.runret and shutil.runout
- Next message: [Python-ideas] shutil.runret and shutil.runout
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Fri, Feb 24, 2012 at 11:52, anatoly techtonik <techtonik at gmail.com> wrote: > subprocess is low level, cryptic, does too much, with poor usability, > i.e. "don't make me think" is not about it. I don't know about you, > but I can hardly write any subprocess call without spending at least > 5-10 meditating over the documentation. So, I propose two high level > KISS functions for shell utils (shutil) module: > > runret(command) - run command through shell, return ret code > runout(command) - run command through shell, return output Have you seen subprocess.check_call() and subprocess.check_output()? I don't think your proposed functions add much benefit over these two. Cheers, Dirkjan
- Previous message: [Python-ideas] shutil.runret and shutil.runout
- Next message: [Python-ideas] shutil.runret and shutil.runout
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-ideas mailing list