[Python-Dev] for...else
Kiuhnm
kiuhnm03 at yahoo.it
Mon Jul 24 11:35:03 EDT 2017
Hello,
I think that the expression "for...else" or "while...else" is completely
counter-intuitive. Wouldn't it be possible to make it clearer? Maybe
something like
break in for i in range(n):
...
if cond:
break
else:
...
I'm not an English native speaker so I don't know whether "break in" is
acceptable English in this context or can only mean "to get into a
building by force".
Kiuhnm
More information about the Python-Dev
mailing list