How to Nest Structs?

2013-03-04 Thread Ari King
Hi, I'm trying to nest the info_header, info_body, and info_trailer structs (see below) into a data_packet struct. Does anyone know how I can/should accomplish this? Thanks. batch_header_format = struct.Struct('!c2h') info_header_format = struct.Struct('!2hl') mkt_status_format =

Re: How to Nest Structs?

2013-03-04 Thread web
Try unpacking the nested struct as a fixed width string and then unpacking the string. Then unpack the string On Monday, March 4, 2013 10:22:07 AM UTC-8, Ari King wrote: Hi, I'm trying to nest the info_header, info_body, and info_trailer structs (see below) into a data_packet