I made a basic program to store some data and I am in trouble if the user chooses to delete some stored dictionary key. The function that deletes the data in my program is this:
def EraseData(name):
'''
Apaga uma chave do dicionário do banco de dados.
'''
db = dbm.open('data.db', 'c')
del db[name]
db.close()
When I search the entries in my database I see that NOTHING has been deleted. It just does not work.
This is the link for all my code in GIT
: link