Hi,
It seems Python 3.8> use memoryview type objects to represent bytes/bytearray for efficient access.
The code I had that used py4j worked with python 3.7 but got broken with 3.8 because apparently py4j does not expect memoryview type objects. I am currently using a workaround in py4j/compat.py as follows:
Change:
def isbytearray(s):
return isinstance(s, bytearray)
To:
def isbytearray(s):
return isinstance(s, bytearray) or isinstance(s, memoryview)
Is there a plan to add this support?
Thanks and best regards,
Malik