Skip to content

[3.7] bpo-24596: Decref module in PyRun_SimpleFileExFlags() on SystemExit (GH-7918)#8070

Merged
pitrou merged 1 commit into
python:3.7from
miss-islington:backport-d8cba5d-3.7
Jul 3, 2018
Merged

[3.7] bpo-24596: Decref module in PyRun_SimpleFileExFlags() on SystemExit (GH-7918)#8070
pitrou merged 1 commit into
python:3.7from
miss-islington:backport-d8cba5d-3.7

Conversation

@miss-islington

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

Copy link
Copy Markdown
Contributor

PyErr_Print() will not return when the exception is a SystemExit, so
decref the main module object in that case.
(cherry picked from commit d8cba5d)

Co-authored-by: Zackery Spytz zspytz@gmail.com

https://bugs.python.org/issue24596

…ythonGH-7918)

PyErr_Print() will not return when the exception is a SystemExit, so
decref the __main__ module object in that case.
(cherry picked from commit d8cba5d)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
@miss-islington

Copy link
Copy Markdown
Contributor Author

@ZackerySpytz and @pitrou: Backport status check is done, and it's a success ✅ .

@pitrou pitrou merged commit 20ae4c6 into python:3.7 Jul 3, 2018
@miss-islington miss-islington deleted the backport-d8cba5d-3.7 branch July 3, 2018 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants