How about, instead of trying to emphasize how different a
block-statement is from a for-loop, we emphasize their similarity?

A regular old loop over a sequence or iterable is written as:

    for VAR in EXPR:
        BLOCK

A variation on this with somewhat different semantics swaps the keywords:

    in EXPR for VAR:
        BLOCK

If you don't need the variable, you can leave the "for VAR" part out:

    in EXPR:
        BLOCK

Too cute? :-)

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to