On Sat, Sep 11, 2021 at 02:37:25PM -0400, Juancarlo Añez wrote:
> David,
> 
> It seems I didn't state clearly enough my original statement, which is that
> software will *_always_ *fail, even because of faulty hardware components,
> or cosmic rays.

If you expect your software to be resilient given faulty hardware, using 
exceptions is not the way to do it. If the hardware is faulty, you can't 
rely on either the condition test (whether written with assert or not) 
or the recovery block to behave correctly. Hardware failure resilient 
software has to be designed from the very lowest levels of machine code.

Given faulty hardware or cosmic-ray flipping of bits in memory, you are 
far more likely to get an interpreter seg fault than a failure you can 
test for and handle. Or an OS level failure. Machine crashing or locking 
up is way more likely than anything you can handle in Python.


-- 
Steve
_______________________________________________
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/5JIFDS7DSD3F6NFNVY6TSZU4RYDJFNOE/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to