A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2005-October/057353.html below:

[Python-Dev] PEP 343 updated

[Python-Dev] PEP 343 updatedGuido van Rossum guido at python.org
Sun Oct 16 17:19:07 CEST 2005
On 10/16/05, Nick Coghlan <ncoghlan at iinet.net.au> wrote:
> PEP 343 has been updated on python.org.
>
> Highlights of the changes:
>
>    - changed the name of the PEP to be simply "The 'with' Statement"
>    - added __with__() method
>    - added section on standard terminology (that is, contexts/context managers)
>    - changed generator context decorator name to "context"
>    - Updated "Resolved Issues" section
>    - updated decimal.Context() example
>    - updated closing() example so it works for objects without close methods
>
> I also added a new Open Issues section with the questions:
>
>    - should the decorator be called "context" or something else, such as the
>      old "contextmanager"? (The PEP currently says "context")
>    - should the decorator be a builtin? (The PEP currently says yes)
>    - should the decorator be applied automatically to generators used to write
>      __with__ methods? (The PEP currently says yes)

I hope you reverted the status to "Proposed"...

On the latter: I think it shouldn't; I don't like this kind of magic.
I'll have to read it before I can comment on the rest.

--
--Guido van Rossum (home page: http://www.python.org/~guido/)
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