Re: Unpacking problem

2007-03-01 Thread timm . gloger
Ok, that solves my confusion. Thanks, Marc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Unpacking problem

2007-03-01 Thread timm . gloger
The problem is, that len('\x90\x06\x00') is not equivalent to calcsize('Bh'): >>> calcsize('Bh') 4 >>> len('\x90\x06\x00') 3 Actually calculating the size for 'hB' results in: >>> calcsize('hB') 3 So far I have not figured out, why there is an additional byte, but it does not effect the result in