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 less than three DEPART values. The problem i

Re: ValueError: need more than 3 values to unpack

2006-01-21 Thread Fuzzyman
Elezar Simeon Papo wrote: > Hello All, > > I have a tab separated input file (data.txt) in text format - the file > looks like this > > SCHOOLDEPART1 DEPART2 DEPART3 > Harvard Economics Mathematics Physics > Stanford Mathematics Physics > Berkeley Physics > U.