[Tutor] curious struct problem

Marcus Goldfish magoldfish at gmail.com
Mon Feb 5 15:12:21 CET 2007


On 2/2/07, Danny Yoo <dyoo at hkn.eecs.berkeley.edu> wrote:
>
>
> There is something very suspicious in the code.  You don't happen to have
> any global variables in your program, do you?


I think I found the problem: the last chunk read is incomplete, so there is
size(chunk) is not sufficient to unpack according to the format string.

Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20070205/45175972/attachment.htm 


More information about the Tutor mailing list