Skip to content

bpo-44156: Make cached string constants in compile.c subinterpreter compatible#26161

Merged
vstinner merged 4 commits into
python:mainfrom
Fidget-Spinner:compile-no-static-strings
May 25, 2021
Merged

bpo-44156: Make cached string constants in compile.c subinterpreter compatible#26161
vstinner merged 4 commits into
python:mainfrom
Fidget-Spinner:compile-no-static-strings

Conversation

@Fidget-Spinner
Copy link
Copy Markdown
Member

@Fidget-Spinner Fidget-Spinner commented May 16, 2021

@Fidget-Spinner
Copy link
Copy Markdown
Member Author

@vstinner, please take a look if you have the time. Thank you!

@Fidget-Spinner
Copy link
Copy Markdown
Member Author

Some tests are failing because of GH action outages https://www.githubstatus.com/incidents/zbpwygxwb3gw.

@vstinner
Copy link
Copy Markdown
Member

Please create an issue for this change. You can a "meta" issue to make modules static variables compatible with sub-interpreters, but it's better to create a specific issue. For example, only replace "string constants".

See for example https://bugs.python.org/issue40521 but please don't reuse this one.

@Fidget-Spinner Fidget-Spinner changed the title bpo-42834: Make cached string constants in compile.c subinterpreter compatible bpo-44156: Make cached string constants in compile.c subinterpreter compatible May 17, 2021
@Fidget-Spinner
Copy link
Copy Markdown
Member Author

Please create an issue for this change. You can a "meta" issue to make modules static variables compatible with sub-interpreters, but it's better to create a specific issue. For example, only replace "string constants".

See for example https://bugs.python.org/issue40521 but please don't reuse this one.

Thanks Victor. I've followed your recommendations.

@Fidget-Spinner
Copy link
Copy Markdown
Member Author

I just noticed I need to regenerate the blurb. I'll do that soon.

Comment thread Python/compile.c
Comment thread Python/compile.c Outdated
Comment thread Python/compile.c Outdated
Comment thread Python/compile.c Outdated
Comment thread Python/compile.c Outdated
Comment thread Python/compile.c Outdated
Comment thread Python/compile.c Outdated
@vstinner vstinner merged commit 2966924 into python:main May 25, 2021
@vstinner
Copy link
Copy Markdown
Member

Merged, thanks.

@Fidget-Spinner
Copy link
Copy Markdown
Member Author

@vstinner Thank you for taking the time to review this and make the code more readable. I appreciate it :).

@Fidget-Spinner Fidget-Spinner deleted the compile-no-static-strings branch May 25, 2021 13:58
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.

4 participants