I have a persistent dictionary created with DB = shelve.open('Database')
This object is of type:
class 'shelve.DbfilenameShelf'
However, I want to know if it is possible to convert it back into a dictionary:
class 'dict'
PS: I know I can just use the shelve object as I would a normal dictionary, but I want to explicitly convert it from a shelve to a dictionary.