def iterate_file(file):
 while 1:
  chunk = file.read(CHUNK_SIZE)
  if (not chunk):
   break
  (yield chunk)

def iterate_file ( file ) : while 1 : chunk = file . read ( CHUNK_SIZE ) if ( not chunk ) : break ( yield chunk )
progressively return chunks from file .