@@ -29,7 +29,7 @@ from cpython.pycapsule cimport *
2929import collections
3030import pyarrow
3131
32- from pyarrow.lib cimport Buffer, NativeFile, check_status, SerializedPyObject
32+ from pyarrow.lib cimport Buffer, NativeFile, check_status
3333from pyarrow.includes.libarrow cimport (CMutableBuffer, CBuffer,
3434 CFixedSizeBufferWriter, CStatus)
3535
@@ -616,7 +616,7 @@ def put(PlasmaClient client, value, object_id=None):
616616 client : PlasmaClient
617617 The client connected to the object store we put the value in.
618618 value : object
619- A Python object to store.
619+ A Python object to store. Currently only lists are supported.
620620 object_id : ObjectID, default None
621621 If this is provided, the specified object ID will be used to refer
622622 to the object.
@@ -626,7 +626,7 @@ def put(PlasmaClient client, value, object_id=None):
626626 The object ID associated to the Python object.
627627 """
628628 cdef ObjectID id = object_id if object_id else ObjectID.from_random()
629- cdef SerializedPyObject serialized = pyarrow.serialize(value)
629+ serialized = pyarrow.serialize(value)
630630 buffer = client.create(id , serialized.total_bytes)
631631 stream = pyarrow.FixedSizeBufferOutputStream(buffer )
632632 stream.set_memcopy_threads(4 )
@@ -642,18 +642,19 @@ def get(PlasmaClient client, object_ids, timeout_ms=-1):
642642 ----------
643643 client : PlasmaClient
644644 The client connected to the object store we get objects from.
645- object_ids : list
646- The list of object IDs associated to the values we get from the store.
645+ object_ids : list or ObjectID
646+ Object ID or list of object IDs associated to the values we get from
647+ the store.
647648 timeout_ms : int, default -1
648649 The number of milliseconds that the get call should block before
649650 timing out and returning. Pass -1 if the call should block and 0
650651 if the call should return immediately.
651652
652653 Returns
653654 -------
654- list
655- List of Python values for the data associated with the object_ids
656- and ObjectNotAvailable if the object was not available.
655+ list or object
656+ Python value or list of Python values for the data associated with
657+ the object_ids and ObjectNotAvailable if the object was not available.
657658 """
658659 if isinstance (object_ids, collections.Sequence):
659660 results = []
0 commit comments