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

Method clear_traps

Lib/_pydecimal.py:3984–3987  ·  view source on GitHub ↗

Reset all traps to zero

(self)

Source from the content-addressed store, hash-verified

3982 self.flags[flag] = 0
3983
3984 def clear_traps(self):
3985 """Reset all traps to zero"""
3986 for flag in self.traps:
3987 self.traps[flag] = 0
3988
3989 def _shallow_copy(self):
3990 """Returns a shallow copy from self."""

Callers 4

test_c_signal_dictMethod · 0.95
test_c_funcsMethod · 0.45

Calls

no outgoing calls

Tested by 4

test_c_signal_dictMethod · 0.76
test_c_funcsMethod · 0.36