Fix comparison to arbitrary objects
diff --git a/Lib/fontTools/ttLib/tables/DefaultTable.py b/Lib/fontTools/ttLib/tables/DefaultTable.py
index e960ff3..ff45bc3 100644
--- a/Lib/fontTools/ttLib/tables/DefaultTable.py
+++ b/Lib/fontTools/ttLib/tables/DefaultTable.py
@@ -37,5 +37,9 @@
return "<'%s' table at %x>" % (self.tableTag, id(self))
def __cmp__(self, other):
+ if type(self) != type(other) or \
+ self.__class__ != other.__class__:
+ return cmp(id(self), id(other))
+
return cmp(self.__dict__, other.__dict__)