zenoh-python icon indicating copy to clipboard operation
zenoh-python copied to clipboard

[dev/1.0.0]Should `ZBytes.__new__` be replaced with `ZBytes.serialize`?

Open wyfo opened this issue 1 year ago • 1 comments

Describe the release item

@Mallets

wyfo avatar Aug 27 '24 09:08 wyfo

We agreed on:

  • use a class method constructor serialize working the same way as the current constructor
  • modify the constructor signature to only accept bytes (actually, I would like to use collection.abc.Buffer, but it requires Python3.12), making the intent clearer.

wyfo avatar Sep 09 '24 10:09 wyfo