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

Function maybe

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

Source from the content-addressed store, hash-verified

60def group(*choices): return '(' + '|'.join(choices) + ')'
61def any(*choices): return group(*choices) + '*'
62def maybe(*choices): return group(*choices) + '?'
63
64# Note: we use unicode matching for names ("\w") but ascii matching for
65# number literals.

Callers 1

tokenize.pyFile · 0.85

Calls 1

groupFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…