News for hackers. Stuff that matters.
Re:Python 3.0 Released by bdr on Thursday December 04, 2008 @03:10AM (#385444)
I'm ambivalent about changing so many functions to return iterators. It's cleaner for experienced coders, but harder to understand for beginners.
Re:Python 3.0 Released by dnaquin on Thursday December 04, 2008 @10:42AM (#385763)
Most of those changes get masked behind loops that I don't think either is very different for understanding.

I think the plusses outweigh the edge cases.

Re:Python 3.0 Released by bdr on Thursday December 04, 2008 @04:08PM (#386145)
Having taught a couple beginners, I can tell you that what you see when you print a variable is very important. So, I guess it depends how these objects convert to strs, but I was assuming it would show a zip or map object rather than the result.
Re:Python 3.0 Released by schtog on Friday December 05, 2008 @02:03AM (#386759)
what are the edge cases? what are the advantages of iterators? less memoryuse?
Re:Python 3.0 Released by eru on Friday December 05, 2008 @11:08AM (#387136)
Iterators get some of the benefits of lazy evaluation.