MCPcopy Index your code
hub / github.com/python/cpython / parse_option_groups

Method parse_option_groups

Tools/clinic/libclinic/parse_args.py:464–472  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

462 self.parser_body(parser_code)
463
464 def parse_option_groups(self) -> None:
465 # positional parameters with option groups
466 # (we have to generate lots of PyArg_ParseTuple calls
467 # in a big switch statement)
468
469 self.flags = "METH_VARARGS"
470 self.parser_prototype = PARSER_PROTOTYPE_VARARGS
471 parser_code = ' {option_group_parsing}'
472 self.parser_body(parser_code)
473
474 def _parse_vararg(self) -> str:
475 assert self.varpos is not None

Callers 1

parse_argsMethod · 0.95

Calls 1

parser_bodyMethod · 0.95

Tested by

no test coverage detected