Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #90877

subprocess.getstatusoutput does not exist in 2.7

From Cecil Westerhof <Cecil@decebal.nl>
Newsgroups comp.lang.python
Subject subprocess.getstatusoutput does not exist in 2.7
Organization Decebal Computing
Date 2015-05-19 19:11 +0200
Message-ID <87oalgtru5.fsf@Equus.decebal.nl> (permalink)

Show all headers | View raw


At the moment I want my code to run with 2.7 and 3.4+.

But the command:
    subprocess.getstatusoutput
does not exist in 2.7. Is this an oversight or is there a reason for
it?

I can rewrite the code (back) to work with Popen again, but I found
the getstatusoutput elegant.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

subprocess.getstatusoutput does not exist in 2.7 Cecil Westerhof <Cecil@decebal.nl> - 2015-05-19 19:11 +0200
  Re: subprocess.getstatusoutput does not exist in 2.7 Jon Ribbens <jon+usenet@unequivocal.co.uk> - 2015-05-19 17:37 +0000
    Re: subprocess.getstatusoutput does not exist in 2.7 Cecil Westerhof <Cecil@decebal.nl> - 2015-05-19 21:07 +0200

csiph-web