[Python-Dev] for...else
Kiuhnm
kiuhnm03 at yahoo.it
Mon Jul 24 11:35:03 EDT 2017
More information about the Python-Dev mailing list
Mon Jul 24 11:35:03 EDT 2017
- Previous message (by thread): [Python-Dev] Is Windows XP still supported on Python 2.7?
- Next message (by thread): [Python-Dev] for...else
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message (by thread): [Python-Dev] Is Windows XP still supported on Python 2.7?
- Next message (by thread): [Python-Dev] for...else
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list