Quoting "Paul Wise" <pabs@debian.org>:
Actually, is there any generalised syntax, language, deprecation and mistake checker for python?
There are pychecker, pyflakes, and pylint in Debian. This specific case raises a warning in pylint, if I'm not mistaken.