Skip to main content

is_pickable

Returns true if the object can be dumped and loaded through the pickle module.

def is_pickable(
obj: any
) - > boolean

Returns true if the object can be dumped and loaded through the pickle module.

Parameters

NameTypeDescription
objanyThe object to be tested for pickle compatibility

Returns

TypeDescription
booleanTrue if the object is successfully serializable and deserializable via pickle, False otherwise