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

Function process_kinds

Tools/c-analyzer/cpython/__main__.py:286–294  ·  view source on GitHub ↗
(args, *, argv=None)

Source from the content-addressed store, hash-verified

284 parser.add_argument(f'--{kind}', dest='kinds',
285 action='append_const', const=kind)
286 def process_kinds(args, *, argv=None):
287 kinds = []
288 for raw in args.kinds or ():
289 for kind in raw.replace(',', ' ').strip().split():
290 if kind in _capi.KINDS:
291 kinds.append(kind)
292 else:
293 parser.error(f'expected KIND to be one of {sorted(_capi.KINDS)}, got {kind!r}')
294 args.kinds = set(kinds)
295
296 parser.add_argument('--group-by', dest='groupby',
297 choices=['level', 'kind'])

Callers

nothing calls this directly

Calls 6

setFunction · 0.85
splitMethod · 0.45
stripMethod · 0.45
replaceMethod · 0.45
appendMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…