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

I didn't know you could simply open a file and setify it. Interesting. & neat.


You can setify any iterable. File handles are iterables that return a line at a time. Tada!


> File handles are iterables...

I did not know that. Assumed you had to somehow wrap them first. Very useful, thanks!




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

Search: