Detecting Problems Early
Unlike traditionally compiled languages, Python does not require source code to be compiled into machine code before it is run. Instead, Python accepts source code directly and executes it as is. This means that it is possible for you to, for example, run invalid Python source code that never stands a chance of executing or working.
To reduce this risk, many Python projects run static analysis tools to help them validate and verify source code before trying to run it. What are static analysis tools? Static analysis tools don’t actually run your code, but read it and inspect it for issues that can be found just by browsing the source code itself. Kind of like a friend peering over your shoulder as you type and letting ...
Get Intuitive Python now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.