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-July/054629.html below:

[Python-Dev] Terminology for PEP 343

[Python-Dev] Terminology for PEP 343 [Python-Dev] Terminology for PEP 343Greg Ewing greg.ewing at canterbury.ac.nz
Tue Jul 5 09:01:00 CEST 2005
Phillip J. Eby wrote:
> At 11:48 PM 7/3/2005 -0400, Raymond Hettinger wrote:

> with context_expression as variable:
>      # perform actions within a context
> 
> The "with" statement establishes a context in which some operations are to 
> be performed.

I like this.

> The object produced by 'context_expression' must have __enter_context__ and 
> __exit_context__ methods, which will be invoked by the "with" statement 
> when the context is entered...

And we could call this the "context protocol".

Greg



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