[Python-Dev] cpython: Rename contextlib.ignored() to contextlib.ignore().
Glenn Linderman
v+python at g.nevcal.com
Tue Oct 15 05:12:42 CEST 2013
On 10/14/2013 5:18 PM, Nick Coghlan wrote:
> What the new CM *doesn't* handle nicely is multi-statement suites, and
> I'm OK with that.
Yeah, that is the dubious part.
You can't even convince python-dev that saving 2 lines to ignore an
exception in one line of code is a good idea, at the cost of the
potential for misunderstanding and misuse; I can't conceive of how
verbose the documentation would have to be to explain it to people that
don't know python well... especially to the cut-n-pasters that don't
read the documentation anyway (in some sense they don't matter, until
they discover the bug, and then try to read the documentation).
I suspect that there is no logic that will quiet down this thread with
the current implementation and decision, now that it has been exposed
for what it is ... maybe the only way would be to appeal to Guido to
proclaim that this thread should stop.
Of course, if the name were changed to be accurate, or the feature made
less prone to misuse, then maybe it would terminate.
I've got an extra can of "break_out_if" paint here...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20131014/24d94c44/attachment.html>
More information about the Python-Dev
mailing list