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

Function register_optionflag

Lib/doctest.py:153–155  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

151
152OPTIONFLAGS_BY_NAME = {}
153def register_optionflag(name):
154 # Create a new flag unless `name` is already known.
155 return OPTIONFLAGS_BY_NAME.setdefault(name, 1 << len(OPTIONFLAGS_BY_NAME))
156
157DONT_ACCEPT_TRUE_FOR_1 = register_optionflag('DONT_ACCEPT_TRUE_FOR_1')
158DONT_ACCEPT_BLANKLINE = register_optionflag('DONT_ACCEPT_BLANKLINE')

Callers 1

doctest.pyFile · 0.85

Calls 2

lenFunction · 0.85
setdefaultMethod · 0.45

Tested by

no test coverage detected