Skip to content

[3.7] bpo-34044: subprocess.Popen copies startupinfo (GH-8090)#8120

Closed
miss-islington wants to merge 1 commit into
python:3.7from
miss-islington:backport-483422f-3.7
Closed

[3.7] bpo-34044: subprocess.Popen copies startupinfo (GH-8090)#8120
miss-islington wants to merge 1 commit into
python:3.7from
miss-islington:backport-483422f-3.7

Conversation

@miss-islington

@miss-islington miss-islington commented Jul 5, 2018

Copy link
Copy Markdown
Contributor

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

https://bugs.python.org/issue34044

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>
@vstinner

vstinner commented Jul 5, 2018

Copy link
Copy Markdown
Member

I don't think that it's ok to add a public STARTUPINFO.copy() method in 3.7.1, so I created a backport manually to make the method private: PR 8121.

@vstinner vstinner closed this Jul 5, 2018
@miss-islington miss-islington deleted the backport-483422f-3.7 branch July 5, 2018 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants