subprocess popen.communicate() vs. stdin.write() and stdout.read()

Опубликовано: 27 Июль 2026
на канале: The Python Oracle
1,408
2

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Peaceful Mind

--

Chapters
00:00 Question
03:26 Accepted answer (Score 7)
04:45 Answer 2 (Score 0)
05:07 Answer 3 (Score -1)
05:35 Thank you

--

Full question
https://stackoverflow.com/questions/2...

Question links:
[live output from subprocess command]: https://stackoverflow.com/questions/1...
[read subprocess stdout line by line]: https://stackoverflow.com/questions/2...
[python, subprocess: reading output from subprocess]: https://stackoverflow.com/questions/3...

Answer 2 links:
[documentation]: http://docs.python.org/2/library/subp...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/l...

--

Tags
#python #subprocess #python33

#avk47