[EMAIL PROTECTED] wrote:
> Hi Kent,
> 
> Thanks for you solution, unfortunately, as Luis correctly inferred, I'm 
> doing computational biology, so my real data is HUGE and I got this error:
> 
> Traceback (most recent call last):
>  File "stolen.py", line 62, in ?
>    first, second = zip(nonGenic)
> ValueError: too many values to unpack

That is a coding error, it should be zip(*nonGenic) <- note the asterisk.

 >>> data = [(1423, 2637),(6457, 8345),(9086, 10100),(12304, 15666)]
 >>> first, second = zip(data)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ValueError: too many values to unpack
 >>> first, second = zip(*data)
 >>>

Kent

_______________________________________________
Tutor maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/tutor

Reply via email to