At 08:29 PM 5/1/2006 +1000, Nick Coghlan wrote:
>'localcontext' would probably work as at least an interim name for such a 
>function.
>
>   with decimal.localcontext() as ctx:
>       # use the new context here

And the "as ctx" should be unnecessary for most use cases, if localcontext 
has an appropriately designed API.

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to