Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #24982
| Date | 2012-07-06 11:12 -0700 |
|---|---|
| From | Ethan Furman <ethan@stoneleaf.us> |
| Subject | Re: Question about weakref |
| References | (3 earlier) <87a9ze85h2.fsf@handshake.de> <jt62f2$t89$1@dough.gmane.org> <CALwzidmAZavM-R1UXE_Qb-6vmk-518fZ-vJGd2GEHbTROAn2Vg@mail.gmail.com> <CALwzidksHx35Rte=StR-MyTjv79XseK2E+K4H0V5DYxo86W5pQ@mail.gmail.com> <CALwzidmVx++oRRuGor2YQLgosu3nCYshDTc2uePwKw9HaZ2KOQ@mail.gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.1868.1341598575.4697.python-list@python.org> (permalink) |
Ian Kelly wrote: > def del_b(self, b): > for i, x in enumerate(self.array): > if b is x: > del self.array[i] > break Nice work, Ian.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Question about weakref Ethan Furman <ethan@stoneleaf.us> - 2012-07-06 11:12 -0700
csiph-web