def check_str_arg(result, func, cargs):
 dbl = result
 ptr = cargs[(-1)]._obj
 return (dbl, ptr.value.decode())

def check_str_arg ( result , func , cargs ) : dbl = result ptr = cargs [ ( - 1 ) ] . _obj return ( dbl , ptr . value . decode ( ) )
this is for the osrget[angular|linear]units functions .