Searched refs:DefaultContext (Results 1 – 7 of 7) sorted by relevance
225 class DefaultContext(BaseContext): class264 DefaultContext.__all__ = [x for x in dir(DefaultContext) if x[0] != '_']313 _default_context = DefaultContext(_concrete_contexts['fork'])331 _default_context = DefaultContext(_concrete_contexts['spawn'])
1591 DefaultContext = self.decimal.DefaultContext1598 save_prec = DefaultContext.prec1599 save_emax = DefaultContext.Emax1600 save_emin = DefaultContext.Emin1601 DefaultContext.prec = 241602 DefaultContext.Emax = 4250000001603 DefaultContext.Emin = -4250000001619 self.assertFalse(DefaultContext.flags[sig])1624 DefaultContext.prec = save_prec1625 DefaultContext.Emax = save_emax[all …]
1010 .. class:: DefaultContext1034 default values are copied from the :const:`DefaultContext`. If the *flags*1729 The new context is copied from a prototype context called *DefaultContext*. To1731 application, directly modify the *DefaultContext* object. This should be done1736 DefaultContext.prec = 121737 DefaultContext.rounding = ROUND_DOWN1738 DefaultContext.traps = ExtendedContext.traps.copy()1739 DefaultContext.traps[InvalidOperation] = 11740 setcontext(DefaultContext)
973 .. class:: DefaultContext999 default values are copied from the :const:`DefaultContext`. If the *flags*1789 The new context is copied from a prototype context called *DefaultContext*. To1791 application, directly modify the *DefaultContext* object. This should be done1796 DefaultContext.prec = 121797 DefaultContext.rounding = ROUND_DOWN1798 DefaultContext.traps = ExtendedContext.traps.copy()1799 DefaultContext.traps[InvalidOperation] = 11800 setcontext(DefaultContext)
415 if context in (DefaultContext, BasicContext, ExtendedContext):456 if context in (DefaultContext, BasicContext, ExtendedContext):3790 dc = DefaultContext5879 DefaultContext = Context( variable
456 if context in (DefaultContext, BasicContext, ExtendedContext):3890 dc = DefaultContext6072 DefaultContext = Context( variable
1147 * In the context templates (:class:`~decimal.DefaultContext`,