File: class/Extras/Other/PriorClasses/lmco-nov12/updatedb.py

import shelve
db = shelve.open('lmcodb')

for key in db:
    print key, '=>', db[key]

sue = db['sue']
sue.giveRaise(.10)
db['sue'] = sue
db.close()



[Home page] Books Code Blog Python Author Train Find ©M.Lutz