def same_types(self, index1, index2):
try:<EOL><INDENT>same = self.table[index1].type == self.table[index2].type != SharedData.TYPES.NO_TYPE<EOL><DEDENT>except Exception:<EOL><INDENT>self.error()<EOL><DEDENT>return same<EOL>
Returns True if both symbol table elements are of the same type