Is there a way to view cPickle or Pickle file contents without loading Python in Windows?

For Python 3.2+/2.7+ you can view (__repr__‘s of) pickles from the command-line:

$ python -c "import pickle; pickle.dump({'hello': 'world'}, open('obj.dat', 'wb'))"
$ python -mpickle obj.dat
{'hello': 'world'}

It should be easy to integrate this into the Windows shell.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)