From: Ville Vainio Date: 2004-04-02T04:24:22+09:00 Subject: Re: deciding between ruby and python >>>>> "Hal" == Hal Fulton writes: Hal> I'm prepared to admit you are right, since I don't know Hal> Python. That's a commendable attitude. Hal> file, length, name, title = [' '.join(t.split()) for t in Hal> line.split('|')] Hal> This seems neither OO nor functional style to me. What do you Hal> think? Funny, because it's very much both. join and split are string methods, and the overall structure is a List Comprehension. List comprehension is like [ i+1 for i in [1,2,3] ] which yields the list [2,3,4] List comprehensions come from Haskell (www.haskell.org) which is considered a functional language, at least where I come from ;-). -- Ville Vainio http://tinyurl.com/2prnb