8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b70b5db commit ebaf52eCopy full SHA for ebaf52e
IPython/utils/pickleutil.py
@@ -50,6 +50,22 @@
50
51
class CannedObject(object):
52
def __init__(self, obj, keys=[], hook=None):
53
+ """can an object for safe pickling
54
+
55
+ Parameters
56
+ ==========
57
58
+ obj:
59
+ The object to be canned
60
+ keys: list (optional)
61
+ list of attribute names that will be explicitly canned / uncanned
62
+ hook: callable (optional)
63
+ An optional extra callable,
64
+ which can do additional processing of the uncanned object.
65
66
+ large data may be offloaded into the buffers list,
67
+ used for zero-copy transfers.
68
+ """
69
self.keys = keys
70
self.obj = copy.copy(obj)
71
self.hook = can(hook)
0 commit comments