You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
719 B

4 years ago
  1. #!/usr/bin/env python
  2. #
  3. # Author: Mike McKerns (mmckerns @caltech and @uqfoundation)
  4. # Copyright (c) 2008-2016 California Institute of Technology.
  5. # Copyright (c) 2016-2018 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. global settings for Pickler
  10. """
  11. try:
  12. from pickle import DEFAULT_PROTOCOL
  13. except ImportError:
  14. from pickle import HIGHEST_PROTOCOL as DEFAULT_PROTOCOL
  15. settings = {
  16. #'main' : None,
  17. 'protocol' : DEFAULT_PROTOCOL,
  18. 'byref' : False,
  19. #'strictio' : False,
  20. 'fmode' : 0, #HANDLE_FMODE
  21. 'recurse' : False,
  22. 'ignore' : False,
  23. }
  24. del DEFAULT_PROTOCOL