title: Is there some way to test whether two pkl files have the same data in python?
body: <p>I need to compare whether two objects have the same data in python, but some types don't support ==.  Can I make pkl files out of both of them and then compare the byte data?  If that doesn't work, is there some way to compare their byte data (say we don't know if we're dealing with two tuples that may contain different data types, lists, matrices, dataframes, etc)?  Writing a comparison function that has different cases based on whether we're looking at tuples that contain matrices, dataframes, etc, seems very messy.</p>