Hi all, probably a dumb question, but I didn't find something elegant for my problem so far. In perl you can unpack the element of a list to variables similar as in python (a, b, c = [0, 1, 2]), but the number of variables need not to fit the number of list elements. That means, if you have less list elements variables are filled with 'undef' (None in python), if you have more list elements as necessary the rest is ignored.
How can I achieve this behaviour with python in an elegant and fast way? Best regards Andreas Mock -- http://mail.python.org/mailman/listinfo/python-list