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

Victor Stinner victor.stinner at gmail.com
Sun Oct 13 16:21:42 CEST 2013


2013/10/13 Antoine Pitrou <solipsis at pitrou.net>:

On Sun, 13 Oct 2013 22:50:07 +1000 Nick Coghlan <ncoghlan at gmail.com> wrote:

That's the way this works (unless you think this is such a disastrous addition that you want to appeal to Guido to strip me of my responsibilities as contextlib maintainer and go hunting for a new one). Wow... I don't think challenging others to "strip you of your responsibilities" is a reasonable way to address criticism. And for the record, it's not my objection; several other core developers have said -1 too: Ezio, Serhiy, Giampaolo, etc.

You can also count me as -1: the context manager looks like it ignores the exception, whereas it does not: you exit immediatly the block when the exception occurs. It's maybe an issue with the name.

Like Antoine, I'm not sure that we need a new context manage to save 2 lines.

Victor



More information about the Python-Dev mailing list