pack and unpack problems

Peter Hansen peter at engcorp.com
Tue Jun 17 22:14:48 EDT 2003


Justin Johnson wrote:
> 
> exceptions.ValueError: unpack tuple of wrong size
> 
> struct.calcsize('xxLxx8c') returns 18, which is the amount of bytes in
> "data", at least I think so.  I'm not sure what's going on here.  Anybody
> have any advice on this?

"print len(data)"  and tell us what you see...




More information about the Python-list mailing list