[Python-Dev] for...else (original) (raw)
Koos Zevenhoven k7hoven at gmail.com
Wed Jul 26 20:07:51 EDT 2017
- Previous message (by thread): [Python-Dev] for...else
- Next message (by thread): [Python-Dev] for...else
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Jul 27, 2017 02:38, "MRAB" <python at mrabarnett.plus.com> wrote:
On 2017-07-26 23:55, Koos Zevenhoven wrote:
IMO, for item in sequence: # block nobreak: # or perhaps
if not break:
# block would be clearer (if the syntax is necessary at all).
You couldn't have "if not break:" because that would look like the start of an 'if' statement.
Do you mean as an implementation issue or for human readability?
"nobreak" would introduce a new keyword, but "not break" wouldn't.
Sure :)
-- Koos (mobile) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20170727/2d39522b/attachment.html>
- Previous message (by thread): [Python-Dev] for...else
- Next message (by thread): [Python-Dev] for...else
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]