Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #24981 > unrolled thread
| Started by | Ian Kelly <ian.g.kelly@gmail.com> |
|---|---|
| First post | 2012-07-06 11:51 -0600 |
| Last post | 2012-07-06 11:51 -0600 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Question about weakref Ian Kelly <ian.g.kelly@gmail.com> - 2012-07-06 11:51 -0600
| From | Ian Kelly <ian.g.kelly@gmail.com> |
|---|---|
| Date | 2012-07-06 11:51 -0600 |
| Subject | Re: Question about weakref |
| Message-ID | <mailman.1867.1341597125.4697.python-list@python.org> |
On Fri, Jul 6, 2012 at 11:48 AM, Ian Kelly <ian.g.kelly@gmail.com> 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
Back to top | Article view | comp.lang.python
csiph-web