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


Groups > comp.lang.python > #54443

Re: subprocess call is not waiting.

From Terry Reedy <tjreedy@udel.edu>
Subject Re: subprocess call is not waiting.
Date 2013-09-19 15:58 -0400
References (6 earlier) <mailman.906.1348050393.27098.python-list@python.org> <5059c765$0$6952$e4fe514c@news2.news.xs4all.nl> <mailman.925.1348072500.27098.python-list@python.org> <505a018f$0$6946$e4fe514c@news2.news.xs4all.nl> <6886842d-e89c-4ced-8502-fdaa250d1ac5@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.161.1379620749.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 9/19/2013 7:42 AM, harish.barvekar@gmail.com wrote:
> subprocess.call(tempFileName, shell=True).communicate()

should raise an AttributeError as the int returned by subprocess.call 
does not have a .communicate method.

> this process is not blocking.

Why do you think that? All function calls block until the function 
returns, at which point blocking ceases.  If you call 
Popen(someprog).communicate() and someprog runs quickly, you will hardly 
notice the blocking time.

-- 
Terry Jan Reedy

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


Thread

Re: subprocess call is not waiting. "harish.barvekar@gmail.com" <hbarvekar@ciphercloud.com> - 2013-09-19 04:42 -0700
  Re: subprocess call is not waiting. Terry Reedy <tjreedy@udel.edu> - 2013-09-19 15:58 -0400

csiph-web