Re: Unpacking the structures

2013-12-18 Thread Dan Stromberg
On Wed, Dec 18, 2013 at 8:32 PM, wrote: > > Hi all, >While performing the packing/unpacking of xdr structures of rpc I get an > error as following. > > > x = struct.unpack('>L', data)[0] struct.error: unpack requires a string > argument of length 4. > > Can anybody help me in this regard?

Unpacking the structures

2013-12-18 Thread smilesonisamal
Hi all, While performing the packing/unpacking of xdr structures of rpc I get an error as following. x = struct.unpack('>L', data)[0] struct.error: unpack requires a string argument of length 4. Can anybody help me in this regard? I checked the following link: http://docs.python.org/2/l