list.without()?
Preston Landers
prestonlanders at my-deja.com
Tue Nov 16 13:46:35 EST 1999
In article <y0jln7zi9pb.fsf at vier.idi.ntnu.no>,
mlh at vier.idi.ntnu.no (Magnus L. Hetland) wrote:
> class list:
> def without(self,element):
> temp = self[:]
> temp.remove(element)
> return temp
def remove(list, element):
while element in list:
list.remove(element)
return list
--
|| Preston Landers <prestonlanders at my-deja.com> ||
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list