please help shrink this each_with_index() implementation
Phlip
phlip2005 at gmail.com
Tue Jan 5 15:36:07 EST 2010
> > My Pythonic sequencing skills are obviously feeble. Can anything think
> > of a way to write that in fewer lines?
Thanks, all!
> Couldn't you just use the built-in enumerate() to replace the whole thing?
Because that would involve, like, reading an entire Python book just
to locate that method?
GMAB I'm too busy writing high-end Django via TDD & BDD! C-:
--
Phlip
http://zeekland.zeroplayer.com/Pigleg_Too/1
More information about the Python-list
mailing list