Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #6856
| Subject | Re: Unshelving the data? |
|---|---|
| From | Adam Tauno Williams <awilliam@whitemice.org> |
| References | <4433955b-7f54-400a-af08-1f58a75e734c@j31g2000yqe.googlegroups.com> |
| Date | 2011-06-02 06:46 -0400 |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2389.1307013346.9059.python-list@python.org> (permalink) |
On Wed, 2011-06-01 at 19:49 -0700, Uncle Ben wrote: > Shelving is a wonderfully simple way to get keyed access to a store of > items. I'd like to maintain this cache though. +1 > Is there any way to remove a shelved key once it is hashed into the > system? I could do it manually by removing the value and erasing the > key in the directory list. But is there a more elegant way? del shelve[key] > Or should I to go the full database route? It is not a lage > application. Stick with shelves. Much simpler.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Unshelving the data? Uncle Ben <bgreen@nycap.rr.com> - 2011-06-01 19:49 -0700
Re: Unshelving the data? Chris Torek <nospam@torek.net> - 2011-06-02 03:24 +0000
Re: Unshelving the data? Ben Finney <ben+python@benfinney.id.au> - 2011-06-02 13:25 +1000
Re: Unshelving the data? Adam Tauno Williams <awilliam@whitemice.org> - 2011-06-02 06:46 -0400
Re: Unshelving the data? Uncle Ben <bgreen@nycap.rr.com> - 2011-06-02 06:17 -0700
csiph-web