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

2013年10月12日 21:45:36 -0700

On 12Oct2013 15:27, Raymond Hettinger <[email protected]> wrote:
> On Oct 12, 2013, at 1:41 PM, Ethan Furman <[email protected]> wrote:
> . break_on reads just fine to me, although leave_on is probably better.
> 
> Sorry, these are both really bad.
I agree.
> I've user tested ignore() and had good results.
> It makes the intention of the code very clear.
I think it is good also. I would also be happy with:
 ignore_exception
for greater explicitness or, perhaps better for Ethan's camp:
 discard_exception
But we've got "ignore" in play already. Can't we accept that it is
somewhat evocative though clearly not perfect for everyone, and
move on?
Cheers,
-- 
Cameron Simpson <[email protected]>
Once a Junior Programmer interrupted a Great Guru of the Sun to ask a
Question of no importance. The Great Guru replied in words which the Junior
Programmer did not understand. The Junior Programmer sought to rephrase the
Question, saying, "Stop me if I appear stupid." The great Guru, without
speaking, reached over and pressed L1-A.
The Junior Programmer achieved Enlightenment. - Jon Green
_______________________________________________
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