Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:Question': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'def': 0.10; 'b):': 0.16; 'ian.': 0.16; 'message-id:@dough.gmane.org': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.17; 'work,': 0.22; 'second': 0.24; 'header:In-Reply- To:1': 0.25; 'header:User-Agent:1': 0.26; 'header:X-Complaints- To:1': 0.28; 'that.': 0.30; 'to:addr:python-list': 0.33; 'thanks': 0.34; 'received:org': 0.36; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'frank': 0.75; 'furman': 0.84; 'much,': 0.84; 'ethan': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Frank Millman Subject: Re: Question about weakref Date: Sat, 07 Jul 2012 07:41:26 +0200 References: <87hatmr3xf.fsf@handshake.de> <87a9ze85h2.fsf@handshake.de> <4FF72AA3.3070808@stoneleaf.us> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 197.87.30.148 User-Agent: Mozilla/5.0 (Windows NT 5.2; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 In-Reply-To: <4FF72AA3.3070808@stoneleaf.us> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1341639709 news.xs4all.nl 6862 [2001:888:2000:d::a6]:36917 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:25000 On 06/07/2012 20:12, Ethan Furman wrote: > 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. I second that. Thanks very much, Ian. Frank