title: How to test if a file has been created by pickle?
body: <p>Is there any way of checking if a file has been created by <code>pickle</code>? I could just catch exceptions thrown by <code>pickle.load</code> but there is no specific "not a pickle file" exception.</p>