Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/
Dtest_decimal.py530 localcontext = self.decimal.localcontext
562 with localcontext() as c:
1442 localcontext = self.decimal.localcontext
1465 with localcontext() as ctx:
1509 localcontext = cls.decimal.localcontext
1519 with localcontext() as c2:
1523 with localcontext() as c3:
1548 localcontext = cls.decimal.localcontext
1558 with localcontext() as c2:
1562 with localcontext(thiscontext) as c3:
[all …]
Dtest_time.py820 with decimal.localcontext() as context:
Dtest_statistics.py1366 with decimal.localcontext(decimal.ExtendedContext):
1373 with decimal.localcontext(decimal.BasicContext):
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_context.py15 with decimal.localcontext() as ctx:
/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.rst2861 returned by :func:`decimal.localcontext`. These managers set the active
/external/python/cpython3/Doc/library/
Ddecimal.rst925 You can also use the :keyword:`with` statement and the :func:`localcontext`
928 .. function:: localcontext(ctx=None)
938 from decimal import localcontext
940 with localcontext() as ctx:
Dstdtypes.rst4687 returned by :func:`decimal.localcontext`. These managers set the active
/external/python/cpython3/Lib/test/support/
D__init__.py2993 with decimal.localcontext() as ctx:
/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/cpython3/Doc/whatsnew/
D2.5.rst625 The new :func:`localcontext` function in the :mod:`decimal` module makes it easy
629 from decimal import Decimal, Context, localcontext
635 with localcontext(Context(prec=16)):
D2.6.rst312 The :func:`localcontext` function in the :mod:`decimal` module makes it easy
316 from decimal import Decimal, Context, localcontext
322 with localcontext(Context(prec=16)):
/external/python/cpython2/Lib/
Ddecimal.py463 def localcontext(ctx=None): function
/external/python/cpython3/Lib/
D_pydecimal.py467 def localcontext(ctx=None): function
/external/python/cpython2/Misc/NEWS.d/
D2.6a1.rst3802 localcontext() example from PEP 343.