New submission from Jennie <sk8tr.g...@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@python
components: Documentation
messages: 389564
nosy: docs@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue43635>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to