[3.7] bpo-34044: subprocess.Popen copies startupinfo (GH-8090) by miss-islington · Pull Request #8120 · python/cpython

@vstinner @miss-islington

subprocess.Popen now copies the startupinfo argument to leave it
unchanged: it will modify the copy, so that the same STARTUPINFO
object can be used multiple times.

Add subprocess.STARTUPINFO.copy() method.
(cherry picked from commit 483422f)

Co-authored-by: Victor Stinner <vstinner@redhat.com>