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

Function register_optionflag

tools/python-3.11.9-amd64/Lib/doctest.py:132–134  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

130
131OPTIONFLAGS_BY_NAME = {}
132def register_optionflag(name):
133 # Create a new flag unless `name` is already known.
134 return OPTIONFLAGS_BY_NAME.setdefault(name, 1 << len(OPTIONFLAGS_BY_NAME))
135
136DONT_ACCEPT_TRUE_FOR_1 = register_optionflag('DONT_ACCEPT_TRUE_FOR_1')
137DONT_ACCEPT_BLANKLINE = register_optionflag('DONT_ACCEPT_BLANKLINE')

Callers 1

doctest.pyFile · 0.85

Calls 1

setdefaultMethod · 0.45

Tested by

no test coverage detected