object returned by shelve.open is not an ordinary mapping : Shelve : Database PYTHON TUTORIALS


PYTHON TUTORIALS » Database » Shelve »

 

object returned by shelve.open is not an ordinary mapping


import shelve
s = shelve.open('test.dat')
s['x'['a''b''c']
s['x'].append('d')
print s['x']

temp = s['x']
temp.append('d')
s['x'= temp
print s['x']



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Database
» Shelve