Y
Hacker News
new
|
ask
|
show
|
jobs
by
throwaway_pdp09
2123 days ago
I didn't know you could simply open a file and setify it. Interesting. & neat.
1 comments
fennecfoxen
2123 days ago
You can setify any iterable. File handles are iterables that return a line at a time. Tada!
link
throwaway_pdp09
2123 days ago
> File handles are iterables...
I did not know that. Assumed you had to somehow wrap them first. Very useful, thanks!
link