> > elif len(L) == 5: > > return struct.pack(fmt,L[0] , L[1], L[2], L[3], L[4]) > > elif len(L) == 6: > > return struct.pack(fmt,L[0] , L[1], L[2], L[3], L[4], L[5]) > > > > # etc... etc... etc ... > > return struct.pack(fmt, *L) > > Should do the trick > > ola > Many thanks! It *did* the trick! T