Skip to content
Advertisement

Python pickle module usage

JavaScript

I saved my list with the pickle module. After restarting the program, if I query the list contents without adding new data, I can see the records, but if I add new data, I cannot see the old records. Why i can’t see old records ?

Advertisement

Answer

It’s because you are starting the program with an empty list. you should add a function which sync the database if exists on startup

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement