def getcontext():
        """Returns this thread's context.

        If this thread does not yet have a context, returns
        a new context and sets this thread's context.
        New contexts are copies of DefaultContext.
        """
        try:
            return threading.currentThread().__decimal_context__
        except __HOLE__:
            context = Context()
            threading.currentThread().__decimal_context__ = context
            return context
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/decimal.py/getcontext