(self, new_context)
| 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) |