def isequal(self, line):
    ' Experimental method to compare 2 line classes\n\n            Parameters\n            ----------\n            line : Line\n                The class to compare this one to.\n\n            Returns\n            -------\n            Boolean whether or not the two classes contain the same data.\n\n        '
    try:
        for i in self.__dict__:
            if (cmp(getattr(self, i), getattr(line, i)) != 0):
                return False
    except:
        return False
    return True
Experimental method to compare 2 line classes

Parameters
----------
line : Line
    The class to compare this one to.

Returns
-------
Boolean whether or not the two classes contain the same data.
def isequal(self, line):
    ' Experimental method to compare 2 line classes\n\n            Parameters\n            ----------\n            line : Line\n                The class to compare this one to.\n\n            Returns\n            -------\n            Boolean whether or not the two classes contain the same data.\n\n        '
    try:
        for i in self.__dict__:
            if (cmp(getattr(self, i), getattr(line, i)) != 0):
                return False
    except:
        return False
    return True