I think this is expected behaviour but want to check and maybe find out why, as the research I have done has come up blank
I have a function that pulls data, creates a new instance of my custom class, then appends it to a list. The class just contains variables.
I then pickle that list to a file using protocol 2 as binary, later I re-run the script, re-pull the data from my source, I have a new list with my custom class instances, for testing I keep the data the source data the same.
Reload the pickle file
Now when I do a:
print source_list == pickle_list
this always comes back False
, and I have no idea why, if I print the lists or look at the structure they look exactly the same.
Any ideas would be brill, this is my last little bit I need to sort.