[Python-ideas] Allow multiple arguments to `list.remove` and flag for silent fail

random832 at fastmail.us random832 at fastmail.us
Mon Aug 26 19:55:40 CEST 2013


On Mon, Aug 26, 2013, at 13:11, Ram Rachum wrote:
> my_list.remove(*things, silent_fail=True)
> 
> 
> Aside from being much more concise, it could be more efficient too, 
> couldn't it? 

my_list = list(filter(lambda x: x in things, my_list))


More information about the Python-ideas mailing list