def eq_obj_slots(l, r):
for f in l.__slots__:<EOL><INDENT>if getattr(l, f, None) != getattr(r, f, None):<EOL><INDENT>return False<EOL><DEDENT><DEDENT>return True<EOL>
Compares objects with __slots__ defined
:param l:
:param r:
:return: