undill 650 B

12345678910111213141516171819202122
  1. #!/home/user/coding/gowork/src/p78git.ddns.net/svi/sintez/py_task/venv/bin/python
  2. #
  3. # Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
  4. # Copyright (c) 2008-2016 California Institute of Technology.
  5. # Copyright (c) 2016-2022 The Uncertainty Quantification Foundation.
  6. # License: 3-clause BSD. The full license text is available at:
  7. # - https://github.com/uqfoundation/dill/blob/master/LICENSE
  8. """
  9. unpickle the contents of a pickled object file
  10. Examples::
  11. $ undill hello.pkl
  12. ['hello', 'world']
  13. """
  14. if __name__ == '__main__':
  15. import sys
  16. import dill
  17. for file in sys.argv[1:]:
  18. print (dill.load(open(file,'rb')))