FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-81057: Add PyInterpreterState.static_objects by ericsnowcurrently · Pull Request #99397 · python/cpython · GitHub

/ cpython Public

gh-81057: Add PyInterpreterState.static_objects - #99397

Merged
ericsnowcurrently merged 4 commits into
python:mainfrom
ericsnowcurrently:per-interpreter-static-objects
Nov 11, 2022
Merged

gh-81057: Add PyInterpreterState.static_objects#99397
ericsnowcurrently merged 4 commits into
python:mainfrom
ericsnowcurrently:per-interpreter-static-objects

Conversation

ericsnowcurrently commented Nov 11, 2022
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member

As we consolidate global variables, we find some objects that are almost suitable to add to _PyRuntimeState.global_objects, but have some small/sneaky bit of per-interpreter state (e.g. a weakref list). We're adding PyInterpreterState.static_objects so we can move such objects there. (We'll removed the _not_used field once we've added others.)

ericsnowcurrently merged commit f531b68 into python:main Nov 11, 2022
ericsnowcurrently deleted the per-interpreter-static-objects branch November 11, 2022 21:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL