Jan-07-2019, 04:21 PM
Line 48 doesn't break the loop, it's calling
Personally, I think this function should be used very very rarely, if ever. I think of it as a big red flag that something extremely bad happened, and you don't know how to proceed. Libraries should never use it, only client code (imagine if your webbrowser just crashed for some minor issue).
sys.exit()
to end the program immediately. https://docs.python.org/3/library/sys.html#sys.exitPersonally, I think this function should be used very very rarely, if ever. I think of it as a big red flag that something extremely bad happened, and you don't know how to proceed. Libraries should never use it, only client code (imagine if your webbrowser just crashed for some minor issue).