Skip to content
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

GH-98522: Add version number to code objects, to provide better version numbers for closures and comprehensions. #98525

Merged
merged 6 commits into from
Dec 9, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into code-version
markshannon committed Nov 7, 2022
commit 9e668c95ab9e0232eb551d791be0a0e3dd7e8904
1 change: 1 addition & 0 deletions Python/bytecodes.c
Original file line number Diff line number Diff line change
@@ -3750,6 +3750,7 @@ dummy_func(
func->func_defaults = POP();
}

func->func_version = ((PyCodeObject *)codeobj)->co_version;
PUSH((PyObject *)func);
}

Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.