Skip to content

Comments

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

Closed
miss-islington wants to merge 1 commit intopython: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 intopython:3.7from
miss-islington:backport-483422f-3.7

Conversation

@miss-islington
Copy link
Contributor

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

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 [email protected]

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 <[email protected]>
@vstinner
Copy link
Member

vstinner commented Jul 5, 2018

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