zenoh-python
zenoh-python copied to clipboard
[dev/1.0.0]Should `ZBytes.__new__` be replaced with `ZBytes.serialize`?
Describe the release item
@Mallets
We agreed on:
- use a class method constructor
serializeworking the same way as the current constructor - modify the constructor signature to only accept
bytes(actually, I would like to usecollection.abc.Buffer, but it requires Python3.12), making the intent clearer.