[Python-ideas] SyntaxWarning for for/while/else without break or return?

Stephen J. Turnbull stephen at xemacs.org
Sat Oct 10 20:36:07 CEST 2009

Arnaud Delobelle writes:

 > Also, it would be odd to have a language feature that generates a  
 > warning whenever it is used :)

Not really.  Deprecation warnings behave that way.  AFAICS, a
deprecation warning is just the extreme case of a syntax warning.

More information about the Python-ideas mailing list