so I created a book class and added its instances to a list that I'm trying to pickle but I'm getting a strange error. Help appreciated!
with open("book_data/books.pkl", "wb") as f:
pickle.dump(book_list, f)
Output:
PicklingError Traceback (most recent call last)
<ipython-input-24-45ad0cec62df> in <module>
1 with open("book_data/books.pkl", "wb") as f:
2
----> 3 pickle.dump(book_list, f)
PicklingError: Can't pickle <class '__main__.book'>: it's not the same object as __main__.book