objects don' delete these files--they are your databaseand are what you'll need to copy or transfer when you back up or move your storage you can look at the shelve' files if you want toeither from windows explorer or the python shellbut they are binary hash filesand most of their content makes little sense outside the context of the shelve module with python and no extra software installedour database is stored in three files (in xit' just one filepersondbbecause the bsddb extension module is preinstalled with python for shelvesin xbsddb is an optional third-party open source add-onfor examplepython' standard library glob module allows us to get directory listings in python code to verify the files hereand we can open the files in text or binary mode to explore strings and bytesimport glob glob glob('person*'['person-composite py''person-department py''person py''person pyc''persondb bak''persondb dat''persondb dir'print(open('persondb dir'read()'sue jones'( 'tom jones'( 'bob smith'( print(open('persondb dat','rb'read() '\ \ cperson\nperson\nq\ )\ \ } \ ( \ \ \ \ jobq\ nx\ \ more omitted this content isn' impossible to decipherbut it can vary on different platforms and doesn' exactly qualify as user-friendly database interfaceto verify our work betterwe can write another scriptor poke around our shelve at the interactive prompt because shelves are python objects containing python objectswe can process them with normal python syntax and development modes herethe interactive prompt effectively becomes database clientimport shelve db shelve open('persondb'reopen the shelve len(db list(db keys()['sue jones''tom jones''bob smith'three 'recordsstored bob db['bob smith'bob [personjob=nonename=bob smithpay= fetch bob by key runs __repr__ from attrdisplay bob lastname('smithruns lastname from person more realistic example keys is the index list(to make list in