Skip to content

bpo-31286: Fixed stack usage in absolute imports with binding a submo… #3217

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 3 commits into from
Aug 29, 2017

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Aug 27, 2017

@serhiy-storchaka serhiy-storchaka added the type-bug An unexpected behavior, bug, or error label Aug 27, 2017
@serhiy-storchaka serhiy-storchaka requested a review from a team August 27, 2017 07:16
@serhiy-storchaka serhiy-storchaka changed the title bpo-30024: Fixed stack usage in absolute imports with binding a submo… bpo-31286: Fixed stack usage in absolute imports with binding a submo… Aug 27, 2017
Copy link
Member

@brettcannon brettcannon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Should we bump the magic number for this?

@ncoghlan
Copy link
Contributor

Yes, we should bump the magic number, as otherwise cached pyc files will still exhibit the bug - we need the interpreter to clear them out and recompile them.

@serhiy-storchaka
Copy link
Member Author

I'm not sure this is needed. The version with the bug was not released. The bug affects only pre-alpha testers. AFAIK there are no precedences of bumping the magic number at pre-alpha stage for fixing a bug.

@ncoghlan
Copy link
Contributor

Fair point, especially as the new test case is the only example of the problem in the code base.

We can probably skip the NEWS entry for the same reason (i.e. it fixes a bug in never-released code, so the fact the bug existed isn't exactly relevant to most users)

@serhiy-storchaka serhiy-storchaka merged commit 265fcc5 into python:master Aug 29, 2017
@serhiy-storchaka serhiy-storchaka deleted the import-name-pop branch August 29, 2017 12:47
GadgetSteve pushed a commit to GadgetSteve/cpython that referenced this pull request Sep 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants