The end to all language wars and the great unity API to come!

Gregory Ewing greg.ewing at
Sun Jul 3 06:00:03 CEST 2011

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.


More information about the Python-list mailing list