def list_variables(self):
self.mat_stream.seek(<NUM_LIT:0>)<EOL>self.initialize_read()<EOL>vars = []<EOL>while not self.end_of_stream():<EOL><INDENT>hdr, next_position = self.read_var_header()<EOL>name = asstr(hdr.name)<EOL>shape = self._matrix_reader.shape_from_header(hdr)<EOL>info = mclass_info.get(hdr.mclass, '<STR_LIT>')<EOL>vars.append((name, shape, info))<EOL>self.mat_stream.seek(next_position)<EOL><DEDENT>return vars<EOL>
list variables from stream