On Fri, Jul 6, 2012 at 11:48 AM, Ian Kelly <[email protected]> wrote: > def del_b(self, b): > for i, x in enumerate(self.array): > if b is x: > del self.array[i]
That should probably have an explicit break on the end:
def del_b(self, b):
for i, x in enumerate(self.array):
if b is x:
del self.array[i]
break
--
http://mail.python.org/mailman/listinfo/python-list
