Me too, but for interactive use you're going to like 'filter' better as
soon as you try it. The thing here is, as a well-known
while write(process(read())):
fan, you didn't _really_ want to write
for x in list suchthat testof(x):
dosomething(x)
to begin with <wink>. What you really want, but don't yet realize
because you can't yet do it, is
dosomething(filter(testof,list))
Then again, consistency is the hobgoblin of small minds, so I won't be
offended if you deny this <smile>.
> [ But I suppose all you Gnu-wizards out there do everything
> from within emacs! ]
Is it possible to use Python outside of Emacs?! Hmm. Set the Emacs
python-mode variable py-indent-offset to 4, and it will go a long way
toward making deeply nested indentation more bearable (although algorithm
redesign is probably a better solution to that one ... but python-mode
won't do that for you before release 3.1 <ahem>).
doctor-doctor-it-hurts-when-i-bend-it-way-back-like-this-ly y'rs - tim
Tim Peters tim@ksr.com
not speaking for Kendall Square Research Corp