equals method

On this page

equals

Determines whether the current Layer is the same as the specified Layer object.

def equals(self, other):
    ...
Parameter Type Description
other Layer The object to compare with the current Layer object.

Returns: bool: True if both Layer objects are the same; otherwise, False.

equals

Checks whether the current Layer is equal to the specified object.

def equals(self, obj):
    ...
Parameter Type Description
obj Any The object to compare with the current Layer object.

Returns: bool: True if obj is a Layer and is the same as the current Layer object; otherwise False.

See Also

On this page