-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
gh-128089: Bump the PYC magic number #128097
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
Conversation
JelleZijlstra
commented
Dec 19, 2024
•
edited by bedevere-app
bot
Loading
edited by bedevere-app
bot
- Issue: NotImplementedError raised by annotationlib (?) when importing classes derived from NamedTuple #128089
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Unrelated failure in test_glob
|
I re-ran the failed job. |
Seems like another PR bumping the magic number just went in. Is it still worth it to merge this change @hroncok? I could bump the number further but then the patch wouldn't apply cleanly to 3.14a3 anyway. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah. We cannot backport a version bump that would be equal to a4, or else we'll have the same problem when a4 is out. |
But we can take this, make it 3610. The main branch already had 3611 it seems. |
Main is still on 3610, so it's possible the next alpha will get released with that number. |
Since the magic number was bumped to 3610 by another change, I suggest to not bump the magic number again. Maybe just change the magic number comment to mention annotationlib? |
Or if you still want to increase the magic number, maybe the NOT_TAKEN instruction should get 3611, and annotationlib should get 3610. I don't know :-( |
|
Oh right, the last comment is for 3610 but the actual number is 3611. |
Apparently 3610 was accidentally skipped (#128115). Which gives us the opportunity to retcon 3610 into being the annotations change. |
Hello, is there any chance this could be merged? Or what's the plan forward? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The NEWS entry is outdated:
Bump the PYC magic number for an internal change in annotate functions. The
magic number should have been increased in release 3.14a3. Users running
3.14a3 with PYC files generated using earlier alphas may run into problems.
I suggest to remove it.
…e-128089.3uOOM-.rst
I enabled auto-merge. |
@befeleme: magic number 3610 is now assigned to annotationlib VALUE_WITH_FAKE_GLOBALS. You can backport this change to alpha3 if you want. |
PR merged, thanks @JelleZijlstra. |
Thank you |
…thon#128097) Assign 3610 PYC magic number to VALUE_WITH_FAKE_GLOBALS format of annotationlib.