[New-bugs-announce] [issue43635] Documentation needs to declare CalledProcessError as potentially resulting from subprocess.run()

Jennie report at bugs.python.org
Fri Mar 26 15:47:45 EDT 2021


New submission from Jennie <sk8tr.girl at gmail.com>:

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

----------
assignee: docs at python
components: Documentation
messages: 389564
nosy: docs at python, jennievh
priority: normal
severity: normal
status: open
title: Documentation needs to declare CalledProcessError as potentially resulting from subprocess.run()
type: enhancement
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue43635>
_______________________________________


More information about the New-bugs-announce mailing list