@memoized
def getPos(position, pagesize):
 position = str(position).split()
 if (len(position) != 2):
  raise Exception('position not defined right way')
 (x, y) = [getSize(pos) for pos in position]
 return getCoords(x, y, None, None, pagesize)

@ memoized def getPos ( position , pagesize ) : position = str ( position ) . split ( ) if ( len ( position ) != 2 ) : raise Exception ( 'position not defined right way' ) ( x , y ) = [ getSize ( pos ) for pos in position ] return getCoords ( x , y , None , None , pagesize )
pair of coordinates .