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

Method clear_flags

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

Reset all flags to zero

(self)

Source from the content-addressed store, hash-verified

3977 return ', '.join(s) + ')'
3978
3979 def clear_flags(self):
3980 """Reset all flags to zero"""
3981 for flag in self.flags:
3982 self.flags[flag] = 0
3983
3984 def clear_traps(self):
3985 """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