File: class/Extras/Other/PriorClasses/t2-vancouver-oct15/updatedb.py
import shelve db = shelve.open('t2db') for key in db: print key, '=>', db[key] bob = db['bob'] print bob.lastName() for key in db: rec = db[key] rec.giveRaise(.10) db[key] = rec db.close()