Re:Why Is Python Growing So Quickly?
by makecheck on Thursday September 14, 2017 @01:54PM
(#15250616)
For that though you can use linting tools such as "pylint"; catches a lot of errors that might otherwise be runtime exceptions.
Re:Why Is Python Growing So Quickly?
by shalabhc on Thursday September 14, 2017 @02:12PM
(#15250821)
Take a look at mypy and pytype - there is a drive in the Python community to add a verification system to the language.
Re:Why Is Python Growing So Quickly?
by dwaltrip on Thursday September 14, 2017 @01:59PM
(#15250670)
For this reason, I generally test scripts like that with a small slice of the data, or small set of dummy data. Then one can also verify that the output is reasonable -- which is good to do even with a compiled language that would catch all syntax errors ahead of time.
One particularly big thing, that it doesn't have much of a distinct compilation phase. You'll write some script you want to run to do some one-off task that will take the next hour, only to find it crashed after 20 minutes when it hits some boneheaded syntax error you made.