def unpack(self,pack):
        "return the unpack bit fields in dec [ n1, n2, n3...] with length given in pack [ l1, l2, l3...]"
        r=[]; ss=0;pack.reverse()      
        for i in pack:
            r.append(self.__getslice__(ss,ss+i-1))
            ss +=i
        r.reverse()
        return  r
return the unpack bit fields in dec [ n1, n2, n3...] with length given in pack [ l1, l2, l3...]
recipes/Python/578922_bitfield_rev2/recipe-578922.py