3 ms·
> Python usually waits until runtime to throw exceptions, even for something obvious like a syntax error. Just a nitpick, but that is not true. Well, not compl
by LeonidasXIV 13y ago
> Python usually waits until runtime to throw exceptions, even for something obvious like a syntax error.
Just a nitpick, but that is not true. Well, not completely. Python combiles its code on runtime, and at that part SyntaxError exceptions are thrown. No need to actually reach the code, since the bytecode compiler traverses the whole module anyway.