Searched refs:localcontext (Results 1 – 17 of 17) sorted by relevance
530 localcontext = self.decimal.localcontext562 with localcontext() as c:1442 localcontext = self.decimal.localcontext1465 with localcontext() as ctx:1509 localcontext = cls.decimal.localcontext1519 with localcontext() as c2:1523 with localcontext() as c3:1548 localcontext = cls.decimal.localcontext1558 with localcontext() as c2:1562 with localcontext(thiscontext) as c3:[all …]
820 with decimal.localcontext() as context:
1366 with decimal.localcontext(decimal.ExtendedContext):1373 with decimal.localcontext(decimal.BasicContext):
15 with decimal.localcontext() as ctx:
1180 with localcontext() as ctx:2231 with localcontext() as enter_ctx:2242 with localcontext(new_ctx) as enter_ctx:
956 the :func:`localcontext` function to temporarily change the active context.959 .. function:: localcontext([c])971 from decimal import localcontext973 with localcontext() as ctx:978 with localcontext(BasicContext): # temporarily use the BasicContext
2861 returned by :func:`decimal.localcontext`. These managers set the active
925 You can also use the :keyword:`with` statement and the :func:`localcontext`928 .. function:: localcontext(ctx=None)938 from decimal import localcontext940 with localcontext() as ctx:
4687 returned by :func:`decimal.localcontext`. These managers set the active
2993 with decimal.localcontext() as ctx:
624 The new :func:`localcontext` function in the :mod:`decimal` module makes it easy628 from decimal import Decimal, Context, localcontext634 with localcontext(Context(prec=16)):
308 The :func:`localcontext` function in the :mod:`decimal` module makes it easy312 from decimal import Decimal, Context, localcontext318 with localcontext(Context(prec=16)):
625 The new :func:`localcontext` function in the :mod:`decimal` module makes it easy629 from decimal import Decimal, Context, localcontext635 with localcontext(Context(prec=16)):
312 The :func:`localcontext` function in the :mod:`decimal` module makes it easy316 from decimal import Decimal, Context, localcontext322 with localcontext(Context(prec=16)):
463 def localcontext(ctx=None): function
467 def localcontext(ctx=None): function
3802 localcontext() example from PEP 343.