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
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