I was wondering if there is any way to collect all the Object dumps from pickle file at once.
For example,
If I have a list say a = [1, 2, 3, 4, 5]
and a dictionary say b = {1: "one", 2: "Two"}
& I have dumped it into a file called database.pkl
then while loading the data from the pickle file, I don't want to use multiple pickle.load
call neither I want to use loops to do this.