Searched refs:localcontext (Results 1 – 7 of 7) sorted by relevance
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
2859 returned by :func:`decimal.localcontext`. These managers set the active
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)):
463 def localcontext(ctx=None): function
11650 to match the localcontext() example from PEP 343.