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

Method clear_flags

Lib/_pydecimal.py:3976–3979  ·  view source on GitHub ↗

Reset all flags to zero

(self)

Source from the content-addressed store, hash-verified

3974 return ', '.join(s) + ')'
3975
3976 def clear_flags(self):
3977 """Reset all flags to zero"""
3978 for flag in self.flags:
3979 self.flags[flag] = 0
3980
3981 def clear_traps(self):
3982 """Reset all traps to zero"""

Callers 15

test_named_parametersMethod · 0.95
test_flags_irrelevantMethod · 0.95
test_c_signal_dictMethod · 0.95
setcontextFunction · 0.80
__pow__Method · 0.80
eval_equationMethod · 0.80
test_none_argsMethod · 0.80
test_float_operationMethod · 0.80
assert_attrMethod · 0.80
test_containersMethod · 0.80

Calls

no outgoing calls

Tested by 13

test_named_parametersMethod · 0.76
test_flags_irrelevantMethod · 0.76
test_c_signal_dictMethod · 0.76
eval_equationMethod · 0.64
test_none_argsMethod · 0.64
test_float_operationMethod · 0.64
assert_attrMethod · 0.64
test_containersMethod · 0.64
test_divmodMethod · 0.64
test_powerMethod · 0.64