Re: Help with syntax warnings
- From: Peter Hansen <peter@xxxxxxxxxxx>
- Date: Fri, 30 Sep 2005 07:30:56 -0400
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 detects "dubious syntax"? And here I thought programming was rather black and white, it's right or it's wrong.
(He notes examples such as assigning to None and "unqualified exec is not allowed in function" etc.)
I guess I've never accidentally hit one of those. Seems like, if I had, I'd probably want to fix the problem rather than hide it, as with most warnings from C compilers.
-Peter .
- Follow-Ups:
- Re: Help with syntax warnings
- From: Fredrik Lundh
- Re: Help with syntax warnings
- References:
- Help with syntax warnings
- From: Ivan Shevanski
- Help with syntax warnings
- Prev by Date: Re: replacments for stdio?
- Next by Date: Re: Where to find python c-sources
- Previous by thread: Help with syntax warnings
- Next by thread: Re: Help with syntax warnings
- Index(es):