Our middleware eCAL is written in C++ and it has Python bindings. They use Py_BuildValue to create Python objects, see
In some cases we would like to create a zero-length byte array, using a pointer, a length, and the y# formatter. In these cases, the pointer which is passed to the Py_BuildValue function, is nullptr.
However, this creates a None value, as specified in the documentation. ( Parsing arguments and building values — Python 3.11.3 documentation )
So the question is: how would a be able to build the equivalent to b"" from C/C++? Passing some random non-null value seems a bit strange.
Thanks for the help.