Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #98811
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
| 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 | <mailman.327.1447515615.16136.python-list@python.org> (permalink) |
| 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 | <python-python-list@m.gmane.org> |
| 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 <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Xref | csiph.com comp.lang.python:98811 |
Show key headers only | View raw
On Sat, 14 Nov 2015 07:02:41 -0800 (PST), John Zhao <johnzzhao@gmail.com>
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/
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Persist objects in a LIST John Zhao <johnzzhao@gmail.com> - 2015-11-14 06:26 -0800
Re: Persist objects in a LIST John Zhao <johnzzhao@gmail.com> - 2015-11-14 07:02 -0800
Re: Persist objects in a LIST Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-11-14 10:39 -0500
Re: Persist objects in a LIST Vincent Vande Vyvre <vincent.vande.vyvre@telenet.be> - 2015-11-14 17:33 +0100
csiph-web