From: Hal Fulton Date: 2004-04-02T04:39:12+09:00 Subject: Re: deciding between ruby and python Ville Vainio wrote: >>>>>>"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. I'd have thought t.split.join(' ') would better exemplify both OO and FP. Hal