Home
last modified time | relevance | path

Searched refs:DefaultContext (Results 1 – 7 of 7) sorted by relevance

/external/python/cpython3/Lib/multiprocessing/
Dcontext.py226 class DefaultContext(BaseContext): class
316 _default_context = DefaultContext(_concrete_contexts['spawn'])
318 _default_context = DefaultContext(_concrete_contexts['fork'])
336 _default_context = DefaultContext(_concrete_contexts['spawn'])
/external/python/cpython3/Lib/test/
Dtest_decimal.py1591 DefaultContext = self.decimal.DefaultContext
1598 save_prec = DefaultContext.prec
1599 save_emax = DefaultContext.Emax
1600 save_emin = DefaultContext.Emin
1601 DefaultContext.prec = 24
1602 DefaultContext.Emax = 425000000
1603 DefaultContext.Emin = -425000000
1619 self.assertFalse(DefaultContext.flags[sig])
1624 DefaultContext.prec = save_prec
1625 DefaultContext.Emax = save_emax
[all …]
/external/python/cpython2/Doc/library/
Ddecimal.rst1010 .. class:: DefaultContext
1034 default values are copied from the :const:`DefaultContext`. If the *flags*
1729 The new context is copied from a prototype context called *DefaultContext*. To
1731 application, directly modify the *DefaultContext* object. This should be done
1736 DefaultContext.prec = 12
1737 DefaultContext.rounding = ROUND_DOWN
1738 DefaultContext.traps = ExtendedContext.traps.copy()
1739 DefaultContext.traps[InvalidOperation] = 1
1740 setcontext(DefaultContext)
/external/python/cpython3/Doc/library/
Ddecimal.rst973 .. class:: DefaultContext
999 default values are copied from the :const:`DefaultContext`. If the *flags*
1801 The new context is copied from a prototype context called *DefaultContext*. To
1803 application, directly modify the *DefaultContext* object. This should be done
1808 DefaultContext.prec = 12
1809 DefaultContext.rounding = ROUND_DOWN
1810 DefaultContext.traps = ExtendedContext.traps.copy()
1811 DefaultContext.traps[InvalidOperation] = 1
1812 setcontext(DefaultContext)
/external/python/cpython2/Lib/
Ddecimal.py415 if context in (DefaultContext, BasicContext, ExtendedContext):
456 if context in (DefaultContext, BasicContext, ExtendedContext):
3790 dc = DefaultContext
5879 DefaultContext = Context( variable
/external/python/cpython3/Lib/
D_pydecimal.py460 if context in (DefaultContext, BasicContext, ExtendedContext):
3894 dc = DefaultContext
6074 DefaultContext = Context( variable
/external/python/cpython3/Doc/whatsnew/
D3.3.rst1147 * In the context templates (:class:`~decimal.DefaultContext`,