Re: ValueError: need more than 3 values to unpack

2006-02-07 Thread Elezar Simeon Papo
Thanks a lot guys. this solved the problem. Best Elezar -- Izraz.com - an open bosnian-croatian-serbian dictionary http://izraz.com/Category:Medicinska_stanja -- http://mail.python.org/mailman/listinfo/python-list

Re: ValueError: need more than 3 values to unpack

2006-01-21 Thread Roy Smith
"Elezar Simeon Papo" <[EMAIL PROTECTED]> wrote: > SCHOOL, DEPART1, DEPART2, DEPART3 = line.split('\t') > ValueError: need more than 3 values to unpack > > How do I solve this problem and change the program so it does not stop > if a data record has le

Re: ValueError: need more than 3 values to unpack

2006-01-21 Thread Fuzzyman
> == > > > I am having problems as the program will not work if all three DEPART > values are not present. If I populate all DEPART values for all records > program functions without issues. > > When I run the check module, I get the fol

ValueError: need more than 3 values to unpack

2006-01-21 Thread Elezar Simeon Papo
ent call last): File "D:\Documents and Settings\administrator\Desktop\code\test\testcode.py", line 8, in ? SCHOOL, DEPART1, DEPART2, DEPART3 = line.split('\t') ValueError: need more than 3 values to unpack >>> How do I solve this problem and change the program so it does not stop if a data record has less than three DEPART values. Thanks for your help! Elezar -- http://mail.python.org/mailman/listinfo/python-list