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
| Name | Type | Description |
|---|---|---|
| obj | any | The object to be tested for pickle compatibility |
Returns
| Type | Description |
|---|---|
boolean | True if the object is successfully serializable and deserializable via pickle, False otherwise |