Skip to content

Conversation

ericsnowcurrently
Copy link
Member

@ericsnowcurrently ericsnowcurrently commented Nov 11, 2022

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 ericsnowcurrently merged commit f531b68 into python:main Nov 11, 2022
@ericsnowcurrently ericsnowcurrently deleted the per-interpreter-static-objects branch November 11, 2022 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants