[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
- Previous message: [Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore().
- Next message: [Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore().
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore().
- Next message: [Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore().
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]