"Don Jennings" <[EMAIL PROTECTED]> wrote
return ';'.join(x for x in l if x)
Ah! A list comprehension. Not at that point in the learning python book,
Not quite, I believe its called a generator expression. Its like a list comprehension but without the [] around it. In fact I guess you could say that the new definition of a list comprehension is [ generator expression] But if I'm wrong someone will explain why I'm sure! :-) Alan G. _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor