please help shrink this each_with_index() implementation

Mackrackit mackrackit at gmail.com
Wed Jan 6 01:26:38 CET 2010


On Jan 5, 2010, at 4:30 PM, Phlip <phlip2005 at gmail.com> wrote:

>>
>>
> The point: int('') or int('something') both throw an error. In
> general, this is hand-holding, but in specific I don't think the "rich
> and structured" documentation will cover how to beat a 0 out of it in
> less than 3 lines. So I will persist in my idiotic questions here!
>>
What does an extra two or three lines of code matter?

Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20100105/7bac3b40/attachment.html>


More information about the Python-list mailing list