shelve

Skip Montanaro skip at mojam.com
Mon Dec 20 12:13:53 EST 1999


    Anders> How do you print out (on screen) all the 'records' in a shelve?

Assuming db is your shelve object, the following should work:

    for k in db.keys():
	print db[k]

Skip Montanaro | http://www.mojam.com/
skip at mojam.com | http://www.musi-cal.com/
847-971-7098   | Python: Programming the way Guido indented...




More information about the Python-list mailing list