Python Flashcards

1
Q

subprocess module

A

Stdlib module that provides an API to spawn new processes, connect to their input/output/error pipes, and obtain their return codes

Recommended approach:
subprocess.run()
(or subprocess.check_output())

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

shlex

A

Stdlib module fo simple lexical analysis, such as parsing quoted strings, etc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly