class documentation

class PicklableMixin(object): (source)

Known subclasses: dateutil.test.test_tz.TzPickleTest

View In Hierarchy

Undocumented

Method assertPicklable Assert that an object can be pickled and unpickled. This assertion assumes that the desired behavior is that the unpickled object compares equal to the original object, but is not the same object.
Method _get_nobj_bytes Pickle and unpickle an object using ``pickle.dumps`` / ``pickle.loads``
Method _get_nobj_file Pickle and unpickle an object using ``pickle.dump`` / ``pickle.load`` on a temporary file.
def assertPicklable(self, obj, singleton=False, asfile=False, dump_kwargs=None, load_kwargs=None): (source)

Assert that an object can be pickled and unpickled. This assertion assumes that the desired behavior is that the unpickled object compares equal to the original object, but is not the same object.

def _get_nobj_bytes(self, obj, dump_kwargs, load_kwargs): (source)

Pickle and unpickle an object using ``pickle.dumps`` / ``pickle.loads``

def _get_nobj_file(self, obj, dump_kwargs, load_kwargs): (source)

Pickle and unpickle an object using ``pickle.dump`` / ``pickle.load`` on a temporary file.