Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
masklinn
on July 18, 2019
|
parent
|
context
|
favorite
| on:
What's Coming in Python 3.8
`f` might be iterable / iterator with completely different semantics than doing by-line iteration. And that might even be a good idea.
thomasahle
on July 18, 2019
[–]
In this case it isn't though. And if it were, you could provide an `f.lines()` iterator. The code would be much nicer that way.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: