This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Documentation needs to declare CalledProcessError as potentially resulting from subprocess.run()
Type: enhancement Stage:
Components: Documentation Versions: Python 3.9
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, jennievh
Priority: normal Keywords:

Created on 2021-03-26 19:47 by jennievh, last changed 2022-04-11 14:59 by admin.

Messages (1)
msg389564 - (view) Author: Jennie (jennievh) Date: 2021-03-26 19:47
The documentation for subprocess says that run() can return CalledProcessError...

https://docs.python.org/3/library/subprocess.html#subprocess.run

...but when you click on the link (5th paragraph down) for CalledProcessError, it only lists check_call() and check_output() as methods that can return it.

My understanding is that check_call(), at least, is (becoming?) deprecated. So this section should definitely mention run():

https://docs.python.org/3/library/subprocess.html#subprocess.CalledProcessError
History
Date User Action Args
2022-04-11 14:59:43adminsetgithub: 87801
2021-03-26 19:47:45jennievhcreate