[Python-ideas] for/else syntax

Stephen J. Turnbull stephen at xemacs.org
Fri Oct 2 16:16:27 CEST 2009

Yuvgoog Greenle writes:

 > I think I understand what you're saying and I just don't understand how it
 > pertains to for..else. Specifically I would like an explanation about why
 > the following quote is nonsense to you.

I didn't say it was nonsense and I didn't mean it was nonsense.

I can see no reason at all why PyLint wouldn't warn about "breakless
for-else".  "raise StopIteration" and "if __debug__: break" *may* be
sufficient reason Python itself shouldn't be too noisy, but for sure
PyLint should warn about it.

More information about the Python-ideas mailing list