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

2013年10月13日 08:13:36 -0700

On 14 October 2013 01:05, Victor Stinner <[email protected]> wrote:
> 2013年10月13日 Ethan Furman <[email protected]>:
>> True, but Raymond's example of
>>
>> with ignore(OSError):
>> os.remove('somefile')
>
> And what about:
>
> with ignore(OSError):
> os.remove('file1')
> os.remove('file2')
It's just as broken as the try/except equivalent. I consider that a
feature, not a bug.
Cheers,
Nick.
-- 
Nick Coghlan | [email protected] | Brisbane, Australia
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to