rantingrick wrote:

Ruby: for x in blah: blah_blah_blah
Python: for x in blah: blah_blah_blah

Here you're making the mistake of thinking that surface syntax
is all that matters. Although the 'for' statements in Python and
Ruby look very similar, underneath they're based on quite
different mechanisms. They're not equivalent: the Python way
leads to various powerful things such as generators; the Ruby
way lends itself more to user-defined control structures.

--
Greg
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to