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/2013-October/129405.html below:

[Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore().

[Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore(). [Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore().Barry Warsaw barry at python.org
Fri Oct 11 18:43:57 CEST 2013
On Oct 11, 2013, at 06:27 PM, Georg Brandl wrote:

>Maybe to fit in with other verb-like APIs used as context managers:
>it's open() not opened().

open() predates context managers, but maybe we need a new convention.

with ignore(FileNotFoundError):

vs

with ignored(FileNotFoundError):

To me anyway, the latter sounds better.

-Barry
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