◐ Shell
reader mode source ↗
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
File filter
Conversations
Jump to
Diff view
Apply and reload
Show whitespace
Diff view
Apply and reload
9 changes: 9 additions & 0 deletions Doc/whatsnew/3.8.rst
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,15 @@ xml
Optimizations
=============

* :func:`shutil.copyfile`, :func:`shutil.copy`, :func:`shutil.copy2`,
:func:`shutil.copytree` and :func:`shutil.move` use platform-specific
"fast-copy" syscalls on Linux, macOS and Solaris in order to copy the file
Expand Down
82 changes: 82 additions & 0 deletions Lib/subprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,57 @@ def getoutput(cmd):
return getstatusoutput(cmd)[1]


class Popen(object):
""" Execute a child program in a new process.

Expand Down @@ -1390,6 +1441,23 @@ def _get_handles(self, stdin, stdout, stderr):
errread, errwrite)


def _execute_child(self, args, executable, preexec_fn, close_fds,
pass_fds, cwd, env,
startupinfo, creationflags, shell,
Expand All @@ -1414,6 +1482,20 @@ def _execute_child(self, args, executable, preexec_fn, close_fds,

if executable is None:
executable = args[0]
orig_executable = executable

# For transferring possible exec failure from child to parent.
Expand Down
6 changes: 6 additions & 0 deletions Lib/test/pythoninfo.py
Original file line number Diff line number Diff line change
@@ -610,6 +610,11 @@ def collect_get_config(info_add):
info_add('%s[%s]' % (prefix, key), repr(config[key]))


def collect_info(info):
error = False
info_add = info.add
Expand Down Expand Up @@ -639,6 +644,7 @@ def collect_info(info):
collect_cc,
collect_gdbm,
collect_get_config,

# Collecting from tests should be last as they have side effects.
collect_test_socket,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Toggle all file notes Toggle all file annotations