stanford-mast / pocket

Elastic ephemeral storage
118 stars 28 forks source link

Passing in python bytes object instead of string to put_buffer #11

Open andrewmzhang opened 4 years ago

andrewmzhang commented 4 years ago
r = pocket.put_buffer(p, src, size, dst_filename, jobid) 

The current python API requires that src be a python string, and passing in a python bytes object throws an error.

Is there a way to change the API/C++ dispatcher to allow me to pass in a bytes object?

ukulililixl commented 4 years ago
r = pocket.put_buffer(p, src, size, dst_filename, jobid) 

The current python API requires that src be a python string, and passing in a python bytes object throws an error.

Is there a way to change the API/C++ dispatcher to allow me to pass in a bytes object?

I also come across the same problem. Do you solve the problem now?