Help with syntax warnings

Peter Hansen peter at engcorp.com
Fri Sep 30 04:10:04 CEST 2005


Ivan Shevanski wrote:
> Here's a noob question for everyone (I'm not sure if my first message 
> got through, is had a "suspicious header" so sorry for double post is 
> so), is there a way to turn off syntax warnings or just make them not 
> visible?

Not sure... what's a "syntax warning"?

Python has SyntaxError exceptions, which are raised during compilation 
when a program can't even be compiled.  They're definitely not warnings, 
and making them invisible would generally be pointless, yet even so all 
you would have to do is catch them and ignore them if that's what you 
wanted to do.  But did you mean SyntaxError, or something else?

-Peter



More information about the Python-list mailing list