Fast Efficient way to transfer an object to another list

Hans Mulder hansmu at xs4all.nl
Sun May 2 11:07:29 EDT 2010


Francesco Bochicchio wrote:

> Anyway i think that list.extract( old_list, predicate ) -> new_list
> would be a nice addition to the standard library

You could use filter( predicate, old_list ) -> new_list

-- HansM






More information about the Python-list mailing list