Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
exDM69
on Jan 22, 2015
|
parent
|
context
|
favorite
| on:
Let's Write an LLVM Specializer for Python
Ah, you're absolutely right. for line in open(filename) returns a generator. I added map(str.upper, xxx) there to make it more it make sense.
But the point should be obvious, without generators that would potentially consume a lot of memory.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
But the point should be obvious, without generators that would potentially consume a lot of memory.