| #!/usr/bin/env python |
| # |
| # Author: Mike McKerns (mmckerns @caltech and @uqfoundation) |
| # Copyright (c) 2008-2016 California Institute of Technology. |
| # Copyright (c) 2016-2024 The Uncertainty Quantification Foundation. |
| # License: 3-clause BSD. The full license text is available at: |
| # - https://github.com/uqfoundation/dill/blob/master/LICENSE |
| """ |
| all Python Standard Library object types (currently: CH 1-15 @ 2.7) |
| and some other common object types (i.e. numpy.ndarray) |
| |
| to load more objects and types, use dill.load_types() |
| """ |
| |
| # non-local import of dill.objects |
| from dill import objects |
| for _type in objects.keys(): |
| exec("%s = type(objects['%s'])" % (_type,_type)) |
| |
| del objects |
| try: |
| del _type |
| except NameError: |
| pass |