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

R. David Murray rdmurray at bitdance.com
Fri Oct 11 19:56:56 CEST 2013


On Fri, 11 Oct 2013 20:32:45 +0300, Serhiy Storchaka <storchaka at gmail.com> wrote:
> 11.10.13 10:24, Antoine Pitrou написав(ла):
> > 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.
> 
> I am -1 too. But I want to hear more about interact with ExitStack (note 
> that ExitStack itself is not widely used in the stdlib).

I'm inclined to be -1 as well, because of the anti-pattern
encouragement.  It seems at first blush like using it with ExitStack
would make that tendency worse, so I too would like to hear more about
Nick's thoughts on the subject.

--David


More information about the Python-Dev mailing list