def get_iter_string_reader(stdin):
 bufsize = 1024
 iter_str = (stdin[i:(i + bufsize)] for i in range(0, len(stdin), bufsize))
 return get_iter_chunk_reader(iter_str)

def get_iter_string_reader ( stdin ) : bufsize = 1024 iter_str = ( stdin [ i : ( i + bufsize ) ] for i in range ( 0 , len ( stdin ) , bufsize ) ) return get_iter_chunk_reader ( iter_str )
return an iterator that returns a chunk of a string every time it is called .