Re: Help with syntax warnings

2005-10-01 Thread Peter Otten
Ivan Shevanski wrote: > Well I've been experimenting with the warning filter and it doesn't seem > to be working. . .I think it has something to do with the fact that > warnings are issued during the compiling and not during the excecution. . > .So the filter would come in to late to block them? A

Re: Help with syntax warnings

2005-10-01 Thread Fredrik Lundh
Ivan Shevanski wrote: > Well I've been experimenting with the warning filter and it doesn't seem to > be working. . .I think it has something to do with the fact that warnings > are issued during the compiling and not during the excecution. . .So the > filter would come in to late to block them? A

Re: Help with syntax warnings

2005-10-01 Thread Ivan Shevanski
Well I've been experimenting with the warning filter and it doesn't seem to be working. . .I think it has something to do with the fact that warnings are issued during the compiling and not during the excecution. . .So the filter would come in to late to block them? Any ideas? -Ivan __

Re: Help with syntax warnings

2005-09-30 Thread Fredrik Lundh
Peter Hansen wrote: > Wow... Python detects "dubious syntax"? And here I thought programming > was rather black and white, it's right or it's wrong. SyntaxWarnings are issued for things that has never been valid nor well- defined nor especially clever, but has been handled (in some more or less

Re: Help with syntax warnings

2005-09-30 Thread Roel Schroeven
Ivan Shevanski schreef: > 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? Those warnings are something I have never seen

Re: Help with syntax warnings

2005-09-30 Thread Peter Hansen
Robert Kern wrote: > Peter Hansen wrote: >>Not sure... what's a "syntax warning"? > > In [1]: SyntaxWarning? > Type: classobj > String Form:exceptions.SyntaxWarning > Namespace: Python builtin > Docstring: > Base class for warnings about dubious syntax. Wow... Python detect

Re: Help with syntax warnings

2005-09-29 Thread Leif K-Brooks
Ivan Shevanski wrote: > is there a way to turn off syntax warnings or just make them not > visible? import warnings warnings.filterwarnings('ignore', category=SyntaxWarning) -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with syntax warnings

2005-09-29 Thread Robert Kern
Peter Hansen wrote: > 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'

Re: Help with syntax warnings

2005-09-29 Thread Peter Hansen
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

Help with syntax warnings

2005-09-29 Thread Ivan Shevanski
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? Thanks, -Ivan _