GeezerVison is showing github.com — gh-90928: Statically Initialize the Keywords Tuple in Clinic-Generated Code by ericsnowcurrently · Pull Request #95860 · python/cpython
Conversation
We only statically initialize for core code and builtin modules. Extension modules still create the tuple at runtime. We'll solve that part of interpreter isolation separately.
This change includes generated code. The significant changes are in:
- Tools/clinic/clinic.py
- Python/getargs.c
- Include/cpython/modsupport.h
- Makefile.pre.in (re-generate global strings after running clinic)
- very minor tweaks to Modules/_codecsmodule.c and Python/Python-tokenize.c
All other changes are generated code (clinic, global strings).
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
zooba, kumaraditya303, and erlend-aasland reacted with hooray emoji
erlend-aasland and kumaraditya303 reacted with rocket emoji
All reactions
-
🎉
3 reactions
-
🚀
2 reactions
ericsnowcurrently
requested review from
a team,
1st1,
Fidget-Spinner,
JelleZijlstra,
abalkin,
asvetlov,
berkerpeksag,
erlend-aasland,
ethanfurman,
gvanrossum,
pganssle,
rhettinger and
tiran
as code owners
August 10, 2022 20:24
Uh oh!
There was an error while loading. Please reload this page.
|
LGTM.
We only statically initialize for core code and builtin modules. Extension modules still create the tuple at runtime.
Yeah, its better to solve it for builtins now, extensions modules can be solved later on.
FTR, I tried solving both at once 1 and it worked on Linux but does not work on Windows because it does not allows taking addresses of DLL loaded symbols.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Yeah, its better to solve it for builtins now, extensions modules can be solved later on.
FTR, I tried solving both at once 2 and it worked on Linux but does not work on Windows because it does not allows taking addresses of DLL loaded symbols.
I'm glad you agree. 😄 Splitting it up this way made the most sense.
|
kumaraditya303 reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
🤖 New build scheduled with the buildbot fleet by @ericsnowcurrently for commit 3b308c4 🤖
If you want to schedule another build, you need to add the ":hammer: test-with-buildbots" label again.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
CC. @colorfulappl, regarding your PR #32092. This PR touches some of the same parts of AC and getarg.c.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|