On Jun 2, 6:46 am, Adam Tauno Williams <awill...@whitemice.org> wrote:
> 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.

Thanks.  And Chris, thanks for showing me 'pyco'. I had looked in six
thick books and had not found anything on removing keys.

Ben
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to