def simxReadStringStream(clientID, signalName, operationMode):
    '''
    Please have a look at the function description/documentation in the V-REP user manual
    '''

    signalLength = ct.c_int();
    signalValue = ct.POINTER(ct.c_ubyte)()
    if (sys.version_info[0] == 3) and (type(signalName) is str):
        signalName=signalName.encode('utf-8')
    ret = c_ReadStringStream(clientID, signalName, ct.byref(signalValue), ct.byref(signalLength), operationMode)

    a = bytearray()
    if ret == 0:
        for i in range(signalLength.value):
            a.append(signalValue[i])
    if sys.version_info[0] != 3:
        a=str(a)

    return ret, a
def simxReadStringStream ( clientID , signalName , operationMode ) : signalLength = ct . c_int ( ) ; signalValue = ct . POINTER ( ct . c_ubyte ) ( ) if ( sys . version_info [ 0 ] == 3 ) and ( type ( signalName ) is str ) : signalName = signalName . encode ( 'utf-8' ) ret = c_ReadStringStream ( clientID , signalName , ct . byref ( signalValue ) , ct . byref ( signalLength ) , operationMode ) a = bytearray ( ) if ret == 0 : for i in range ( signalLength . value ) : a . append ( signalValue [ i ] ) if sys . version_info [ 0 ] != 3 : a = str ( a ) return ret , a
Please have a look at the function description/documentation in the V-REP user manual