gh-100227: Port dup3_works to the module state variable.#100262
gh-100227: Port dup3_works to the module state variable.#100262corona10 wants to merge 3 commits intopython:mainfrom
Conversation
✅ Deploy Preview for python-cpython-preview canceled.
|
|
IMHO, we should keep all cached process-level resource availability/capability checks as static global variables. I'm specifically talking about the following group (and any others we might add in the future): cpython/Tools/c-analyzer/cpython/ignored.tsv Lines 16 to 23 in b7e4f1d Making any of them per-interpreter is unnecessary since the value will always be uniform for the process. Moving them to |
|
tl;dr I'd rather we keep In the case of |
Okay, I understood :) |
|
Thanks for working on this though! |
dup3_worksis safe to be ported as the module state variable since there is just one writing accessing in L9462.Even if there are duplicated updatings for the
dup3_worksdue to the race condition,dup3_workswill not be updated anymore after the initial trial.