8000 docstring for CannedObject.__init__ · ipython/ipython@ebaf52e · GitHub
[go: up one dir, main page]

Skip to content

Commit ebaf52e

Browse files
committed
docstring for CannedObject.__init__
1 parent b70b5db commit ebaf52e

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

IPython/utils/pickleutil.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,22 @@
5050

5151
class CannedObject(object):
5252
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+
"""
5369
self.keys = keys
5470
self.obj = copy.copy(obj)
5571
self.hook = can(hook)

0 commit comments

Comments
 (0)
0