4 ms·
He forgot one: "Everything is a run-time error."
by T_S_ 17y ago
He forgot one: "Everything is a run-time error."
- jerf 17y agoSomebody stopped reading before 5 and 6.
- mgreenbe 17y agoIncorrect. Consider a file test.py: print "hello" x = 1 + Note the syntax error. Running it, we see: $ python test.py File "test.py", line 2 x = 1 + ^ SyntaxError: invalid syntax If syntax errors were runtime errors, we would see the effect of the print statement. This is not a top-level effect: the same is true even if a syntax error is under a function.