New submission from Eric Snow <ericsnowcurren...@gmail.com>:

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.

----------
assignee: eric.snow
components: Interpreter Core
messages: 413351
nosy: eric.snow
priority: normal
severity: normal
stage: needs patch
status: open
title: Statically Initialize PyArg_Parser in clinic.py
versions: Python 3.11

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46772>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to