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

Function init

Lib/test/test_decimal.py:109–114  ·  view source on GitHub ↗
(m)

Source from the content-addressed store, hash-verified

107 P: P.getcontext().copy()
108}
109def init(m):
110 if not m: return
111 DefaultTestContext = m.Context(
112 prec=9, rounding=ROUND_HALF_EVEN, traps=dict.fromkeys(Signals[m], 0)
113 )
114 m.setcontext(DefaultTestContext)
115
116TESTDATADIR = 'decimaltestdata'
117if __name__ == '__main__':

Callers 2

setUpFunction · 0.70
setUpModuleFunction · 0.70

Calls 1

fromkeysMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…