def get_size():
 platf = platform.system()
 dimension = None
 if (platf == 'Windows'):
  dimension = _get_size_windows()
  if (dimension is None):
   dimension = _get_size_tput()
 elif ((platf == 'Linux') or (platf == 'Darwin') or platf.startswith('CYGWIN')):
  dimension = _get_size_linux()
 if (dimension is None):
  dimension = (80, 25)
 return dimension

def get_size ( ) : platf = platform . system ( ) dimension = None if ( platf == 'Windows' ) : dimension = _get_size_windows ( ) if ( dimension is None ) : dimension = _get_size_tput ( ) elif ( ( platf == 'Linux' ) or ( platf == 'Darwin' ) or platf . startswith ( 'CYGWIN' ) ) : dimension = _get_size_linux ( ) if ( dimension is None ) : dimension = ( 80 , 25 ) return dimension
return size of an item of arbitrary type .