On 9/04/20 1:37 am, Soni L. wrote:
On 2020-04-08 10:33 a.m., Greg Ewing wrote:
try:
first = next(iterator)
except abdl.exceptions.ValidationError as e: validation_handler(e)
except StopIteration as e: return stop_handler(e)
... I can do that today, can't I?
Yep!
--
Greg
_______________________________________________
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/WO23EYGCMGKWYG5HUED4QBSMMJE2QVCR/
Code of Conduct: http://python.org/psf/codeofconduct/