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

Method __init__

Lib/_pydecimal.py:3838–3839  ·  view source on GitHub ↗
(self, new_context)

Source from the content-addressed store, hash-verified

3836 the previous decimal context in __exit__()
3837 """
3838 def __init__(self, new_context):
3839 self.new_context = new_context.copy()
3840 def __enter__(self):
3841 self.saved_context = getcontext()
3842 setcontext(self.new_context)

Callers

nothing calls this directly

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected