A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-May/064703.html below:

[Python-Dev] More on contextlib - adding back a contextmanager decorator

[Python-Dev] More on contextlib - adding back a contextmanager decorator [Python-Dev] More on contextlib - adding back a contextmanager decoratorPhillip J. Eby pje at telecommunity.com
Mon May 1 17:28:58 CEST 2006
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.

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4