[Chicago] is there really no built-in file/iter split() thing?

Michael Tobis mtobis at gmail.com
Fri Nov 30 23:59:53 CET 2007

def chunker(file,splitter=";"):
   r = c = ""
   while (c or not r) and (not c == splitter)
      c = file.read(1)
   return r

I suspect I'm missing something to make this prettier, but
file.read(1) seems to be the way to go through a file bytewise.


More information about the Chicago mailing list