[Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore().
Victor Stinner
victor.stinner at gmail.com
Wed Oct 16 11:40:21 CEST 2013
CONGRATULATION! This thread reached 100 mails, it's now time to
summarize it into a PEP. Is there a candidate to write it?
If no PEP is written, the thread will never die and people will
continue to feed it.
Victor
2013/10/11 Antoine Pitrou <solipsis at pitrou.net>:
>
> 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.
>
>
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> https://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe: https://mail.python.org/mailman/options/python-dev/victor.stinner%40gmail.com
More information about the Python-Dev
mailing list