From: Steve Dower Date: Fri, 29 Jul 2022 16:24:56 +0000 (+0100) Subject: gh-94302: Clarify use of the 'open' operation in os.startfile (GH-95441) X-Git-Tag: v3.12.0a1~789 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e3bae80e70fce83f1fca70738e68177127831324;p=thirdparty%2FPython%2Fcpython.git gh-94302: Clarify use of the 'open' operation in os.startfile (GH-95441) --- diff --git a/Doc/library/os.rst b/Doc/library/os.rst index d3500d5a1b32..9567dab81ff5 100644 --- a/Doc/library/os.rst +++ b/Doc/library/os.rst @@ -4229,13 +4229,13 @@ written in Python, such as a mail server's external command delivery program. Start a file with its associated application. - When *operation* is not specified or ``'open'``, this acts like double-clicking + When *operation* is not specified, this acts like double-clicking the file in Windows Explorer, or giving the file name as an argument to the :program:`start` command from the interactive command shell: the file is opened with whatever application (if any) its extension is associated. When another *operation* is given, it must be a "command verb" that specifies - what should be done with the file. Common verbs documented by Microsoft are + what should be done with the file. Common verbs documented by Microsoft are ``'open'``, ``'print'`` and ``'edit'`` (to be used on files) as well as ``'explore'`` and ``'find'`` (to be used on directories).