PyChecker and stdin

Peter Hansen peter at engcorp.com
Tue Mar 30 23:17:08 CEST 2004


Olaf Meding wrote:
> Is there a way to tell PyChecker to "skip" a line of source code?  Or
> any other workarounds would also greatly appreciated.

(I don't know how to skip a line, but)  PyChecker has to be able to
import the code.  If you put the failing code in a function that
is called from a '__main__' section, rather than having all code
execute on import, it should solve your problem.

-Peter



More information about the Python-list mailing list