Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Dennis Lee Bieber Newsgroups: comp.lang.python Subject: Re: Persist objects in a LIST Date: Sat, 14 Nov 2015 10:39:59 -0500 Organization: IISS Elusive Unicorn Lines: 17 Message-ID: References: <0cb1bcda-54d5-4cc7-bd23-f86f7f10ee28@googlegroups.com> <15f9fdeb-f4b4-4404-bccb-2e67a26035ed@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de HCvAQ1HMofSRqoujUY+CvAp/kROuCtN8ANr+Xc8pv+2w== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'empty,': 0.09; 'message- id:@4ax.com': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'url:home': 0.18; 'solution.': 0.18; '2015': 0.20; 'rid': 0.22; 'sat,': 0.23; 'header:X-Complaints-To:1': 0.26; 'dictionary': 0.29; 'second,': 0.29; 'creating': 0.30; 'nov': 0.35; 'replace': 0.35; 'should': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'received:org': 0.37; 'charset:us-ascii': 0.37; 'to:addr:python.org': 0.40; 'john': 0.61; 'subject: ': 0.61; 'binding': 0.66; 'dennis': 0.91; 'received:108': 0.93 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: adsl-108-68-178-61.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:98811 On Sat, 14 Nov 2015 07:02:41 -0800 (PST), John Zhao declaimed the following: >I found a solution. replace bDict.clear() with bDict = {} > Which is creating a second, empty, dictionary and binding the name "bDict" to that new one. If all you want is to get rid of the name del bDict should suffice. -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/