Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
throwaway_pdp09
on Aug 22, 2020
|
parent
|
context
|
favorite
| on:
F (2006)
I didn't know you could simply open a file and setify it. Interesting. & neat.
fennecfoxen
on Aug 22, 2020
[–]
You can setify any iterable. File handles are iterables that return a line at a time. Tada!
throwaway_pdp09
on Aug 22, 2020
|
parent
[–]
> 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: