irmen / Pyro5

Pyro 5 - Python remote objects
https://pyro5.readthedocs.io
MIT License
305 stars 36 forks source link

Is bytes type supported? #26

Closed zbynekdrlik closed 4 years ago

zbynekdrlik commented 4 years ago

Bytes is basic python type but when I call pyro object with bytes parameter on server side it si dict. How to get correct deserialization atomaticaly?

irmen commented 4 years ago

Byte type is supported but with a documented caveat when using the default serpent serializer: https://pyro5.readthedocs.io/en/latest/tipstricks.html#binary-data-transfer-file-transfer

The documentation there explains why that is and what you can use as an alternative. For instance, using the marshal serializer or perhaps using the message annotations.