A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2015-July/140766.html below:

[Python-Dev] documentation / implementation question for subprocess.check_output

[Python-Dev] documentation / implementation question for subprocess.check_output [Python-Dev] documentation / implementation question for subprocess.check_outputChris Withers chris at simplistix.co.uk
Thu Jul 16 09:52:11 CEST 2015
Hi All,

Curious to see this in the docs for subprocess.check_output: "Do not use 
stderr=PIPE with this function as that can deadlock based on the child 
process error volume. Use Popen with the communicate() method when you 
need a stderr pipe."

Given that check_output's implementation uses communicate(), how could 
stderr=PIPE cause a deadlock in a way that wouldn't happen if you called 
Popen.communicate() yourself?

cheers,

Chris
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4