A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2005-September/320366.html below:

Help with syntax warnings

Help with syntax warnings Help with syntax warningsPeter Hansen peter at engcorp.com
Fri Sep 30 07:30:56 EDT 2005
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

More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4