Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 186d523

Browse files
committed
#15789: mention shell-like parts of the stdlib in the subprocess docs. Patch by Chris Rebert.
1 parent e34f8a9 commit 186d523

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

Doc/library/subprocess.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,14 @@ default values. The arguments that are most commonly needed are:
245245
:meth:`Popen.communicate` method.
246246

247247
If *shell* is ``True``, the specified command will be executed through
248-
the shell. This can be useful if you are using Python primarily for the
248+
the shell. This can be useful if you are using Python primarily for the
249249
enhanced control flow it offers over most system shells and still want
250-
access to other shell features such as filename wildcards, shell pipes and
251-
environment variable expansion.
250+
convenient access to other shell features such as shell pipes, filename
251+
wildcards, environment variable expansion, and expansion of ``~`` to a
252+
user's home directory. However, note that Python itself offers
253+
implementations of many shell-like features (in particular, :mod:`glob`,
254+
:mod:`fnmatch`, :func:`os.walk`, :func:`os.path.expandvars`,
255+
:func:`os.path.expanduser`, and :mod:`shutil`).
252256

253257
.. warning::
254258

0 commit comments

Comments
 (0)