Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> If you write `for line in sys.stdin: sys.stdout.writte(line)` instead, you'll solve these problems by buffering line-by-line.

Except no. Then you run in to problems with a binary file that might not have a line break.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: