3393 shaares
dill extends Python’s pickle module for serializing and de-serializing Python objects to the majority of the built-in Python types. Serialization is the process of converting an object to a byte stream, and the inverse of which is converting a byte stream back to a Python object hierarchy.
…
dill can pickle the following standard types:
none, type, bool, int, float, complex, bytes, str,
tuple, list, dict, file, buffer, builtin,
Python classes, namedtuples, dataclasses, metaclasses,
instances of classes,
set, frozenset, array, functions, exceptions
dill can also pickle more ‘exotic’ standard types:
functions with yields, nested functions, lambdas,
cell, method, unboundmethod, module, code, methodwrapper,
methoddescriptor, getsetdescriptor, memberdescriptor, wrapperdescriptor,
dictproxy, slice, notimplemented, ellipsis, quit