Uh oh!
There was an error while loading. Please reload this page.
gh-119213: Fix getargs.c to store state in InterpreterState... - #119195
gh-119213: Fix getargs.c to store state in InterpreterState...#1191951st1 wants to merge 1 commit into
Conversation
erlend-aasland
left a comment
There was a problem hiding this comment.
LGTM; perhaps it would make sense to init getargs state just after _PyGC_Init, but I'm not sure it matters; I'll leave that kind of nitpicking to Eric :)
colesbury
commented
May 20, 2024
How does this work when the cpython/Modules/clinic/_struct.c.h Lines 49 to 53 in 6f7dd0a |
vstinner
left a comment
There was a problem hiding this comment.
@serhiy-storchaka: Would you mind to review this change?
@serhiy-storchaka wrote this API.
ericsnowcurrently
commented
May 21, 2024
@colesbury, I'm looking into what's going on. Basically, the statically declared tuple is only for builtin modules. I have a solution that's different from Yury's but want to be sure it's correct before closing this one. |
ericsnowcurrently
commented
May 22, 2024
superseded by gh-119331 |
...as opposed to storing it in PyRuntime. Storing it in PyRuntime
is fundametally wrong, as its state contains references to Python
objects. Those objects (tuples and strings) can (and will) be
picked by various subinterpreter clean up code, leaving PyRuntime
with broken pointers.
#119194 is a backport to 3.12