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

Method __init__

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected