> >>> l = [] > >>>a='1|2|3|4' > >>> l=a.split('|') > >>>l > ['1', '2', '3', '4'] >> and stupid question of the morning (for me) >> >> i want to string.split() into a sequence, a la >> >> l = [] >> l = myString.split('|') >> >> but, of course it whines about too many values. what is the >> common way to do this?
maybe it's that i am actually doing l = [] a, l = string.split('|') ? _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor