def virtual_position(line, col):
 nbytes = col2byte(line, col)
 return (line, int(eval(('virtcol([%d, %d])' % (line, nbytes)))))

def virtual_position ( line , col ) : nbytes = col2byte ( line , col ) return ( line , int ( eval ( ( 'virtcol([%d, %d])' % ( line , nbytes ) ) ) ) )
runs the position through virtcol() and returns the result .