On 12/04/20 3:57 am, Soni L. wrote:
but those are just mitigations, not proper solutions. they reduce the risk but don't eliminate it. why shouldn't we eliminate that risk?
The risk could be completely eliminated today if everyone rewrote their api-exception-raising methods to catch and reraise exceptions appropriately. No new language features would be needed, and it could be done using only "standard exceptions", as you put it. If people are unwilling to do that, then they won't be willing to rewrite them to use your new exception-space convention either. So even if your proposal were accepted, it wouldn't achieve what you want -- not for any technical reason, but because of human nature. -- 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/NPD77YEHYYVMFHWQRODA4IIVMHJO53WV/ Code of Conduct: http://python.org/psf/codeofconduct/