MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / maybe

Function maybe

tools/python-3.11.9-amd64/Lib/tokenize.py:61–61  ·  view source on GitHub ↗
(*choices)

Source from the content-addressed store, hash-verified

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

Callers 1

tokenize.pyFile · 0.70

Calls 1

groupFunction · 0.70

Tested by

no test coverage detected