Skip to content

pret.serialize

globalvars [source]

Adapted from dill._dill._globalvars

get objects defined in global scope that are referred to by func

return a dict of {name:object}

save_function [source]

Adapted from dill._dill.save_function

save_module_dict [source]

Adapted from dill._dill._save_module_dict

create_module_with_dict [source]

Create a module with the given name, docstring, and optional file name

save_type [source]

Adapted from dill._dill._save_type

save_module [source]

Adapted from dill._dill.save_module

create_module [source]

Create a module object from a name