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
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
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
__
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
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
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
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
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'
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
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
_
10 matches
Mail list logo