George Sakkis a écrit : > Bruno Desthuilliers wrote: > (snip) >>words = [] >>for w in ['this', 'is', 'probably', 'what', 'you', 'want']: >> words.append(Word(w)) >>print words > > Or more compactly: > > words = [Word(w) for w in 'this is probably what you want'.split()] > print words
I didn't want to introduce yet some more "confusing" stuff !-) -- http://mail.python.org/mailman/listinfo/python-list