0 votes
in Python by

Explain How Python Does Compile-time And Run-time Code Checking in Python?

1 Answer

0 votes
by

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.

Related questions

0 votes
asked Jun 30, 2020 in Python by GeorgeBell
0 votes
asked Jan 27, 2020 in TypeScript - JavaScript's Superset by AdilsonLima
...