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

Ethan Furman ethan at stoneleaf.us
Sun Oct 13 04:45:06 CEST 2013


On 10/12/2013 06:50 PM, Raymond Hettinger wrote:

On Oct 12, 2013, at 4:30 PM, Ethan Furman wrote:

Were you only displaying the same short form above? Yes. The specific example given was: with ignore(OSError): os.remove(somefile)

That is certainly nicer than the multi-line form.

Argh. Okay, okay, I'm +1. If they're not gonna read the docs it doesn't matter what we name it, and in it's proper setting it certainly reads well.

Now, if you'll pardon me, I need to go add that to my 2.x collection of goodies. ;)

-- Ethan



More information about the Python-Dev mailing list