On 3/26/2021 7:19 PM, Guido van Rossum wrote:
Everyone,
Given the resounding silence I'm inclined to submit this to the Steering
Council. While I'm technically a co-author, Irit has done almost all the
work, and she's done a great job. If there are no further issues I'll
send this SC-wards on Monday.
The current version looks very carefully done. I leave it to the SC to
review the details. But two thoughts on other possible uses.
1. unittests already uses the idea of exception groups by catching
test_xyz exceptions and adding them to a group, to be printed it when
all those for a file are run. If the PEP is accepted, someone might
request an option to have them packaged as an ExceptionGroup.
2. At least some compilers for other languages can report multiple
syntax exceptions, but at least for C, the usefulness of more than 2 or
3 is crippled by the synchronization problem. Python's compile() only
reports the first, but I imagine that the usually dependable parsing
into statements might make multiple reports for Python useful. I am
thinking of a 'multiple' mode that repeatedly and recursively did
'single' compiles. (There would still be only one report per statement
or compound statement header.) I have seen newbie code posted on
Stackoverflow that needed a multi-error report.
--
Terry Jan Reedy
_______________________________________________
Python-Dev mailing list -- python-dev@python.org
To unsubscribe send an email to python-dev-le...@python.org
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at
https://mail.python.org/archives/list/python-dev@python.org/message/CT2SLYRZLNEDCPOSNGFZGTUHRRNJUUBE/
Code of Conduct: http://python.org/psf/codeofconduct/