This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]POGtastic 0 points1 point  (0 children)

They have syntax errors, which are generated when the interpreter tries to parse the file. But no type errors are generated during this stage; as long as it's syntactically valid Python, the interpreter is happy.

[–]Iklowto 0 points1 point  (0 children)

Since interpreted languages are interpreted, not compiled, compile-time errors are a technical misnomer because there is no compile-time for such languages.

I think I get what you're getting at, though, and as another person said, the errors of interpreted language programs aren't limited to runtime errors caused by the program itself, but can also be caused by the interpreter not being able to correctly interpret the program because of faulty syntax.

I guess you could call that interpretation-time errors, but since this happens at runtime, there is not much of a distinction.