Thanks. I realized this mistake right before you replied. Yup, the
coincidence of my test cases threw me there.
By the way, what's a good way to reply to specific subjects and
quoting when using the mailing list through g-mail here?
___
Tutor maillist -
ll last):
File "", line 1, in -toplevel-
[f + g for f, g in '123', '456']
ValueError: too many values to unpack
So why does it accept references to strings but not string literals?
The third example works with a tuple assignment of string literals but
not in the for-in? Any good reason for this, or is it just a quirk?
Thanks,
--Brian Will
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor