Function to remove elements from a list working, but python hangs :((

bruno at modulix onurb at xiludom.gro
Mon Jun 12 07:18:53 EDT 2006


Girish Sahani wrote:
(please don't top-post)
> Hey Bruno...you are seeing the wrong post :P...please ignore this and
> check out the one with (corrected) appended at the end...

<ot>
You should have posted the correction in the same thread.
</ot>

> Also, i used the list comprehension thingy which u have given, but now the
> problem is python just hangs if my list l4 contains around 50
> pairs...considering its not that big a data, this shouldnt happen....
> Should it??

It shouldn't.

-- 
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"



More information about the Python-list mailing list