Kent Johnson schreef:
On Tue, Mar 3, 2009 at 12:18 PM, Timo wrote:
Hello all, I'm using the Shelve module to store dictionaries in a list as a
value of a key.
So:
key = [{'keyA' : 1, 'keyB' : 2}, {'key1' : 1, 'key2' : 2}]
The problem is I can't remove a dictionary from the list.
import
On Tue, Mar 3, 2009 at 12:18 PM, Timo wrote:
> Hello all, I'm using the Shelve module to store dictionaries in a list as a
> value of a key.
>
> So:
>
> key = [{'keyA' : 1, 'keyB' : 2}, {'key1' : 1, 'key2' : 2}]
>
> The problem is I can't remove a dictionary from the list.
>
>
> import shelve
>
>
Hello all, I'm using the Shelve module to store dictionaries in a list
as a value of a key.
So:
key = [{'keyA' : 1, 'keyB' : 2}, {'key1' : 1, 'key2' : 2}]
The problem is I can't remove a dictionary from the list.
import shelve
s = shelve.open('file')
try:
for index, value in enumerate(s[