On 2020-04-08 10:33 a.m., Greg Ewing wrote:
On 9/04/20 1:22 am, Soni L. wrote:
it's hard to reason about it if your eyes just keep jumping into the
except bodies because they have the same indentation and everything
as the normal code. I am gonna say my proposal improves
accessibility, even if it doesn't make a difference to most ppl.
Would you find this easier to read?
try:
first = next(iterator)
except abdl.exceptions.ValidationError as e: validation_handler(e)
except StopIteration as e: return stop_handler(e)
yeah that'd work
... I can do that today, can't I?
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at
https://mail.python.org/archives/list/python-ideas@python.org/message/LLFCO2SHGIUQ543XHOIBKEG7ITX3ZFFN/
Code of Conduct: http://python.org/psf/codeofconduct/