News for hackers. Stuff that matters.
Re:Ride the carousel of folly with a Python migration by mortoray on Tuesday January 24, 2017 @01:49AM (#13469330)
The `iter` form of the `readline` doesn't load the entire stream first, whereas the second form you posted does. This makes a significant difference when reading data from another program.

I saw that migration guide, but it has very few details about what is actually involved in migration. It doesn't include API change details.

Re:Ride the carousel of folly with a Python migration by agf on Tuesday January 24, 2017 @01:57AM (#13469369)
Why do you think the `for` loop form loads the whole stream? That shouldn't be true, since `for` just calls `iter` on the object internally, and normal file-like objects by default are iterated line-by-line.

If you saw the migration guide but found it incomplete, you should edit your post to say that rather than saying there isn't one.

Re:Ride the carousel of folly with a Python migration by orf on Tuesday January 24, 2017 @05:39AM (#13470270)
I'm sorry but that is fundamentally incorrect (and shows a big knowledge gap).

Interesting article though, thank you for posting it.