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

Method clear_traps

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

Reset all traps to zero

(self)

Source from the content-addressed store, hash-verified

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

Callers 4

test_c_signal_dictMethod · 0.95
test_c_funcsMethod · 0.80

Calls

no outgoing calls

Tested by 4

test_c_signal_dictMethod · 0.76
test_c_funcsMethod · 0.64