-
well, I'd attribute that to ruby wich had
for i in Enumerable #file, socket, dir,collections..
...
end
since the beginning :)
(even though I strongly prefer python's coroutinish iterators to ruby's internal ones)
-
Python had it since the beginning too... __iter__ is fairly new, but there were other ways to do the same thing (__getitem__, for example).