deleting list elements

Janos Blazi jblazi at vipsurf.de
Mon Aug 7 18:01:09 EDT 2000


> >for x in li:
> >     if Property(x): 'delete x from the list li'
>
> how about...
>
> li = filter(lambda x: not Property(x), li)

Thx, it works!
J.B.




-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----



More information about the Python-list mailing list