def listCoordinates(filename):
 coords = (line.strip().split('/') for line in open(filename, 'r'))
 coords = (map(int, (row, column, zoom)) for (zoom, column, row) in coords)
 coords = [Coordinate(*args) for args in coords]
 count = len(coords)
 for (offset, coord) in enumerate(coords):
  (yield (offset, count, coord))

def listCoordinates ( filename ) : coords = ( line . strip ( ) . split ( '/' ) for line in open ( filename , 'r' ) ) coords = ( map ( int , ( row , column , zoom ) ) for ( zoom , column , row ) in coords ) coords = [ Coordinate ( * args ) for args in coords ] count = len ( coords ) for ( offset , coord ) in enumerate ( coords ) : ( yield ( offset , count , coord ) )
generate a stream of tuples for seeding .