You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Statically Initialize PyArg_Parser in clinic.py #90928
The code generated by clinic.py is already partially statically initialized. Currently we init the other fields in Python/getargs.c:parser_init(), which runs the first time we try to use each parser. AFAICS, that remaining init that could be done statically using the data we have available in clinic.py during code generation.
My primary interest is in static init of PyArg_Parser.kwtuple, which is a tuple containing only strings.
Activity
ericsnowcurrently commentedon Feb 16, 2022
The code generated by clinic.py is already partially statically initialized. Currently we init the other fields in Python/getargs.c:parser_init(), which runs the first time we try to use each parser. AFAICS, that remaining init that could be done statically using the data we have available in clinic.py during code generation.
My primary interest is in static init of PyArg_Parser.kwtuple, which is a tuple containing only strings.
gh-90928: Statically Initialize the Keywords Tuple in Clinic-Generate…
ericsnowcurrently commentedon Aug 12, 2022
gh-95909 follows up on interpreter isolation for
PyArg_Parser.gh-90928: Improve static initialization of keywords tuple in AC (#95907)