def read(self, frame, data):
        "Returns a list of values, eats all of data."
        seq = []
        while data:
            elem, data = self.spec.read(frame, data)
            seq.append(elem)
        return seq, data
def read ( self , frame , data ) : seq = [ ] while data : elem , data = self . spec . read ( frame , data ) seq . append ( elem ) return seq , data
Returns a list of values, eats all of data.