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-April/063923.html below:

[Python-Dev] Why are contexts also managers? (was r45544

[Python-Dev] Why are contexts also managers? (was r45544 - peps/trunk/pep-0343.txt) [Python-Dev] Why are contexts also managers? (was r45544 - peps/trunk/pep-0343.txt)Phillip J. Eby pje at telecommunity.com
Wed Apr 19 17:31:57 CEST 2006
At 11:41 PM 4/19/2006 +1000, Nick Coghlan wrote:
>Given that naming though, I think contextlib.contextmanager should be renamed
>to contextlib.context.

The name is actually correct under this terminology 
arrangement.  @contextmanager *returns* a context manager.  It happens to 
also be a context, but that's not important.  "With" takes a context 
manager expression.

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