equals method

On this page

equals

Indicates whether the current object is equal to another object of the same type.

def equals(self, other):
    ...
Parameter Type Description
other RawRational An object to compare with this object.

Returns: bool: True if the current object is equal to the other parameter; otherwise, False.

equals

Indicates whether the current object is equal to another object of the same type.

def equals(self, obj):
    ...
Parameter Type Description
obj Any An object to compare with this object.

Returns: bool: True if the current object is equal to the obj parameter; otherwise, False.

See Also

On this page