
On Tue, Feb 10, 2015 at 9:24 AM, Eduard Bondarenko <eduardbpy@gmail.com> wrote:
So I can type whatever I want in else block and someone can detect it after the several years..
And the first thing that I have to do programming in Python is to download analyser tool..I understand the importance of static analyser tools, but in this case (to check simple things like a variables and functions names) it is like "To use a sledge-hammer to crack a nut.".
I think what you are missing is that Python is a dynamic language -- there are any number of things that are simply not known at run-time. Sure, you can come up with simple examples that it seems obvious are an error, but there is no clear place to draw a line. So the "right" thing to do is use linters and unit tests and test coverage tools. _maybe_ there should be some of these in the stdlib, but so far, it's seemed better to have an active ecosystem of competing systems. -Chris -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/OR&R (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception Chris.Barker@noaa.gov