Unshelving the data?

Adam Tauno Williams awilliam at whitemice.org
Thu Jun 2 06:46:21 EDT 2011


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.




More information about the Python-list mailing list