On Thu, 28 Mar 2019 at 08:15, dieter <die...@handshake.de> wrote: > What you have is a generalized deserialization problem. > It can be solved with a set of deserializers.
Yes, and thanks for the suggested code structure. As I say, I can certainly do the parsing "by hand", and the way you describe is very similar to how I'd approach that. My real interest is in whether any libraries exist to do this sort of thing (there are plenty of parser libraries for text, pyparsing being the obvious one, but far fewer for binary structures). Paul -- https://mail.python.org/mailman/listinfo/python-list