Pregunta de entrevista de BenoSoftware

Explain how Python does Compile-time and Run-time code checking?

Respuesta de la entrevista

Anónimo

29 may 2018

Python performs some amount of compile-time checking, but most of the checks such as type, name, etc are postponed until code execution. Consequently, if the Python code references a user -defined function that does not exist, the code will compile successfully. In fact, the code will fail with an exception only when the code execution path references the function which does not exists.