Unpacking byte strings from a file of unknown size

Mark mseagoe at gmail.com
Wed Oct 29 01:14:34 EDT 2008


> this code python interprets as:
>
>      data = myfile.read(10)
>      for chunk in data:
>          <and here chunk is a single-character string>.
>

Aha - now that you put it that way it makes sense.  And thanks to all
who replied - I'll try out the other suggestions too.

Mark



More information about the Python-list mailing list