equals method
Leave feedback
On this page
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.
Determines whether the current Layer is the same as the specified object.
def equals(self, obj):
...
| Parameter | Type | Description |
|---|---|---|
| obj | Any |
The object to compare with the current Layer object. |
Returns: True if obj is a Layer and is the same as the current Layer; otherwise False.
These names call equals too, limited to the overloads listed.
| Alias | Accepts |
|---|---|
equals_layer |
equals_layer(other) |
equals_object |
equals_object(obj) |
- class
Layer
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.