Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
maxerickson
on Jan 22, 2015
|
parent
|
context
|
favorite
| on:
Let's Write an LLVM Specializer for Python
Python 2 enumerate returns an 'enumerate' object that is more or less a light weight wrapper of the sequence that was passed in.
Generators provide a convenient syntax to implement that sort of object.
exDM69
on Jan 22, 2015
[–]
D'oh. I put in a map(), that returns a list.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Generators provide a convenient syntax to implement that sort of object.