Is there any way of checking if a file has been created by pickle? I could just catch exceptions thrown by pickle.load but there is no specific \"not a
pickle
pickle.load
There is no sure way other than to try to unpickle it, and catch exceptions.