[issue44071] Syntax error in Python3 documentation

2021-05-07 Thread Sergey Maslyakov
Sergey Maslyakov added the comment: Thank you, Dennis! I was wrong. Closing the ticket. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue44071] Syntax error in Python3 documentation

2021-05-07 Thread Dennis Sweeney
Dennis Sweeney added the comment: I think the docs are correct. For example: >>> import subprocess >>> subprocess.run("ls", check=True, stdout=subprocess.PIPE).stdout >>> subprocess.check_output("ls") -- nosy: +Dennis Sweeney ___ Python tracker

[issue44071] Syntax error in Python3 documentation

2021-05-07 Thread Sergey Maslyakov
New submission from Sergey Maslyakov : https://docs.python.org/3/library/subprocess.html#subprocess.check_output The code sample seems to have a misplaced closing round bracket. It should go after "stdout" ``` run(..., check=True, stdout=PIPE).stdout ``` -- assignee: docs@python comp