Home
last modified time | relevance | path

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

/external/python/cpython2/Lib/test/
Dtest_decimal.py1180 with localcontext() as ctx:
2231 with localcontext() as enter_ctx:
2242 with localcontext(new_ctx) as enter_ctx:
/external/python/cpython2/Doc/library/
Ddecimal.rst956 the :func:`localcontext` function to temporarily change the active context.
959 .. function:: localcontext([c])
971 from decimal import localcontext
973 with localcontext() as ctx:
978 with localcontext(BasicContext): # temporarily use the BasicContext
Dstdtypes.rst2859 returned by :func:`decimal.localcontext`. These managers set the active
/external/python/cpython2/Doc/whatsnew/
D2.5.rst624 The new :func:`localcontext` function in the :mod:`decimal` module makes it easy
628 from decimal import Decimal, Context, localcontext
634 with localcontext(Context(prec=16)):
D2.6.rst308 The :func:`localcontext` function in the :mod:`decimal` module makes it easy
312 from decimal import Decimal, Context, localcontext
318 with localcontext(Context(prec=16)):
/external/python/cpython2/Lib/
Ddecimal.py463 def localcontext(ctx=None): function
/external/python/cpython2/Misc/
DNEWS11650 to match the localcontext() example from PEP 343.