Searched refs:DefaultContext (Results 1 – 7 of 7) sorted by relevance
226 class DefaultContext(BaseContext): class316 _default_context = DefaultContext(_concrete_contexts['spawn'])318 _default_context = DefaultContext(_concrete_contexts['fork'])336 _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*1801 The new context is copied from a prototype context called *DefaultContext*. To1803 application, directly modify the *DefaultContext* object. This should be done1808 DefaultContext.prec = 121809 DefaultContext.rounding = ROUND_DOWN1810 DefaultContext.traps = ExtendedContext.traps.copy()1811 DefaultContext.traps[InvalidOperation] = 11812 setcontext(DefaultContext)
415 if context in (DefaultContext, BasicContext, ExtendedContext):456 if context in (DefaultContext, BasicContext, ExtendedContext):3790 dc = DefaultContext5879 DefaultContext = Context( variable
460 if context in (DefaultContext, BasicContext, ExtendedContext):3894 dc = DefaultContext6074 DefaultContext = Context( variable
1147 * In the context templates (:class:`~decimal.DefaultContext`,