[Python-ideas] SyntaxWarning for for/while/else without break or return?
Arnaud Delobelle
arnodel at googlemail.com
Sat Oct 10 18:57:44 CEST 2009
On 10 Oct 2009, at 16:30, Nick Coghlan wrote:
>
> Actually, we don't generate a warning for this because there are
> significant legitimate use cases for import * at the module level that
> can't be handled any other way (the two that immediately come to mind
> are for convenience at the interactive prompt and for bringing in
> methods and classes from an optional acceleration module as happens
> in a
> number of standard library modules). We can hardly generate a warning
> for constructs that we use ourselves.
Also, it would be odd to have a language feature that generates a
warning whenever it is used :)
--
Arnaud
More information about the Python-ideas
mailing list