[David Abrahams]
I missed what this function does,
x(seq) returns [(0, seq[0]), (1, seq[1]), ...]
but:
"indexer" is a noun. I like it provided the function returns an indexer(). Otherwise, I'm not too sure.
Yeah, that's my main problem with it.
"enumerate()" sounds like it returns a list of the elements, or is an iterator interface over the elements. Looking it up at http://www.m-w.com/cgi-bin/dictionary shows that it is dangerously close to meaning what we want to say. I say "dangerously" because it *doesn't* mean what we want to say, and I think a close-but-not-quite meaning is probably much worse than calling it wafflebird.
I don't know.
unfortunately, numerate and itemize both mean about the same...
Numerate is obscure, but itemize() has potential! --Guido van Rossum (home page: http://www.python.org/~guido/)
----- Original Message -----
From: "Guido van Rossum"
[David Abrahams]
I missed what this function does,
x(seq) returns [(0, seq[0]), (1, seq[1]), ...]
Oh. Not sure why anyone wants to build that into the language, but enumerate() seems like a decent name for it. itemize() seems OK too. just-call-me-wafflebird-ly y'rs, Dave
participants (2)
-
David Abrahams
-
Guido van Rossum