A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/1999-November/011973.html below:

list.without()?

list.without()? list.without()?Andreas Jung ajung at sz-sb.de
Tue Nov 16 01:19:38 EST 1999
On Tue, Nov 16, 1999 at 01:03:44AM +0100, Magnus L. Hetland wrote:
> 
> Hi!
> 
> Is there a function or method in the standard language that can
> non-destructively return a list without a specified element? Would it
> be possible to add it as a method to lists?

mylist = filter(lambda x: x != ItemToRemove , mylist)

or something similar .... 


More information about the Python-list mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4