In article <[email protected]>,
=?UTF-8?Q?G=C3=BCnther?= Dietrich <[email protected]> wrote:
>
>You assign the result of line.split() to four variables. So split needs
>at least four fields (that's more than three) in line to process.
s/at least/exactly/
>>> w, x, y, z = '1\t2\t3\t4\t5'.split('\t')
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ValueError: too many values to unpack
--
Aahz ([email protected]) <*> http://www.pythoncraft.com/
"If you think it's expensive to hire a professional to do the job, wait
until you hire an amateur." --Red Adair
--
http://mail.python.org/mailman/listinfo/python-list