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

Antoine Pitrou solipsis at pitrou.net
Fri Oct 11 09:24:46 CEST 2013


Hello,

On Fri, 11 Oct 2013 07:39:48 +0200 (CEST)
raymond.hettinger <python-checkins at python.org> wrote:
> http://hg.python.org/cpython/rev/f014b5f0773f
> changeset:   86209:f014b5f0773f
> user:        Raymond Hettinger <python at rcn.com>
> date:        Thu Oct 10 22:39:39 2013 -0700
> summary:
>   Rename contextlib.ignored() to contextlib.ignore().

I don't think that this contextlib.ignore() thing has been discussed a
lot.

Ezio was -1 on the tracker, and Eric Smith was -0. I'd like to add my
-1 too. This is a useless addition (the traditional idiom is perfectly
obvious) and makes reading foreign code more tedious by adding
superfluous API calls.

Please consider reverting.  There is absolutely zero use case for this
that wasn't already solved by the traditional "except ...: pass" idiom.

Regards

Antoine.




More information about the Python-Dev mailing list