Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 3, 2018

Conversation

miss-islington
Copy link
Contributor

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

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