On Dec 4, 8:12 pm, [EMAIL PROTECTED] wrote:
> About the piece of code you posted, there is something I don't
> understand.
>
>         for i, line in data:
>
> where data is a file object. Is it legal to write that?
> I believe it results in "too many values to unpack" or do I miss
> something?

>From the context, my guess is Matimus intended to write:

         for i, line in enumerate(data):
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to