Posted 21 April 2018 - 14:45
Compiling a python file does do a full syntax check, otherwise you can't compile it. Catching runtime errors at compile time is very complicated, especially if they are logic errors, even C/C++ can't protect you from those. At least Python is typed, and you don't have (in most cases) the same misery that you have with a language like PHP. Although that is moving to a typed language as well.
The only way to be resonably sure is use test driven design, have unit tests and a code coverage analyzer, create your unit tests and define the edge cases of your logic before you start coding.
Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)
Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.
Many answers to your question can be found in our new and improved wiki.