Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Locked learning resources

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Using the Python subprocess Module (Summary)

You’ve completed your journey into the Python subprocess module. You should now be able to decide whether subprocess is a good fit for your problem. You should also be able to decide whether you need to invoke the shell. Aside from that, you should be able to run subprocesses and interact with their inputs and outputs.

You should also be able to start exploring the possibilities of process manipulation with the Popen() constructor.

Along the way, you’ve:

  • Learned about processes in general
  • Practiced the usage of subprocess
  • Understood how to raise and handle errors when using run()
  • Explored the use cases for subprocess through practical examples
  • Understood the standard I/O streams and how to interact with them
  • Come to grips with pipes, both in the shell and with subprocess
  • Looked at the Popen() constructor and used it for some advanced process communication

More Real Python resources to explore:

Download

Course Slides (.pdf)

2.4 MB
Download

Sample Code (.zip)

891 bytes

Become a Member to join the conversation.