8000 gh-81057: Add PyInterpreterState.static_objects by ericsnowcurrently · Pull Request #99397 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-81057: Add PyInterpreterState.static_objects #99397

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

Merged
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
_Py_INTERP_OBJECT() -> _Py_INTERP_STATIC_OBJECT()
  • Loading branch information
ericsnowcurrently committed Nov 11, 2022
commit 560590a7586cc4353067bd4eff5211bc7a9e8472
4 changes: 2 additions & 2 deletions Include/internal/pycore_global_objects.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ struct _Py_global_objects {
PyObject *interned;
};

#define _Py_INTERP_OBJECT(interp, NAME) \
#define _Py_INTERP_STATIC_OBJECT(interp, NAME) \
(interp)->static_objects.NAME
#define _Py_INTERP_SINGLETON(interp, NAME) \
_Py_INTERP_OBJECT(interp, singletons.NAME)
_Py_INTERP_STATIC_OBJECT(interp, singletons.NAME)

struct _Py_interp_static_objects {
struct {
Expand Down
0