def setcontext(context, _local=local):
        """Set this thread's context to context."""
        if context in (DefaultContext, BasicContext, ExtendedContext):
            context = context.copy()
            context.clear_flags()
        _local.__decimal_context__ = context
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/decimal.py/setcontext/original