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

Function register_optionflag

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

Source from the content-addressed store, hash-verified

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

Callers 1

doctest.pyFile · 0.85

Calls 1

setdefaultMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…