fury icon indicating copy to clipboard operation
fury copied to clipboard

[Python] Remove pickle dependecy from python serialization

Open chaokunyang opened this issue 5 months ago • 2 comments

Feature Request

No response

Is your feature request related to a problem? Please describe

No response

Describe the solution you'd like

No response

Describe alternatives you've considered

No response

Additional context

No response

chaokunyang avatar Jul 12 '25 11:07 chaokunyang

cloudpickle is used as self.pickler = Pickler(self.buffer) in handle_unsupported_write:

def handle_unsupported_write(self, buffer, obj):
        if self._unsupported_callback is None or self._unsupported_callback(obj):
            buffer.write_bool(True)
            self.pickler.dump(obj)
        else:
            buffer.write_bool(False)

What would you like to do with it?

esafak avatar Jul 14 '25 18:07 esafak

cloudpickle is used as self.pickler = Pickler(self.buffer) in handle_unsupported_write:

def handle_unsupported_write(self, buffer, obj): if self._unsupported_callback is None or self._unsupported_callback(obj): buffer.write_bool(True) self.pickler.dump(obj) else: buffer.write_bool(False) What would you like to do with it?

@esafak We need to support the serialization of any types in fory that can be serialized by pickle/cloudpickle

chaokunyang avatar Jul 15 '25 04:07 chaokunyang