MCPcopy Index your code
hub / github.com/RustPython/RustPython / group

Function group

Lib/tokenize.py:60–60  ·  view source on GitHub ↗
(*choices)

Source from the content-addressed store, hash-verified

58 return self.type
59
60def group(*choices): return '(' + '|'.join(choices) + ')'
61def any(*choices): return group(*choices) + '*'
62def maybe(*choices): return group(*choices) + '?'
63

Callers 3

anyFunction · 0.85
maybeFunction · 0.85
tokenize.pyFile · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected