Skip to content

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

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

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

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 e1ebf51 into python:3.6 Jul 3, 2018
@miss-islington miss-islington deleted the backport-d8cba5d-3.6 branch July 3, 2018 20:17
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