How to automaticaly check python source code for errors

from graphics import *

def main: win = GraphWin("Line", 150, 100) line= Line(Point(150,100)) line.draw(win) win.getMouse # pause for click in window win.close

main

How can i automatically check my Python code for errors.

Utilities for checking the code and finding bugs, including information about debuggers, etc...


 * pychecker

From HowTo Wiki, a Wikia wiki.