[Python-Dev] for...else

2017年7月24日 08:43:00 -0700

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
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to