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

Glenn Linderman v+python at g.nevcal.com
Tue Oct 15 21:09:04 CEST 2013


On 10/15/2013 9:28 AM, PJ Eby wrote:
> On Tue, Oct 15, 2013 at 11:52 AM, R. David Murray<rdmurray at bitdance.com>  wrote:
>> >I think 'trap' would be much clearer.
> +1.  Short and sweet, and just ambiguous enough that you don't leap to
> the conclusion that the error is ignored.  I agree that "suppress" is
> basically a synonym for "ignore"; trap at least*implies*  some kind of
> control flow change, which is what's needed to prevent misconceptions.

Yes, trap or catch imply a control flow change, ignore and suppress do not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20131015/cdf34a68/attachment.html>


More information about the Python-Dev mailing list