A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2013-October/129510.html below:

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

[Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore(). [Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore().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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4