Task: Implement Elegant Equality Support in Python Classes
Task: Implement Elegant Equality Support in Python Classes: a task in Terminal-Lego-15k (Harbor dataset). When writing custom Python classes, it is often important to allow equivalence comparison using the == and != operators. By default, Python compares objects by identity (whether they are the…
The task
When writing custom Python classes, it is often important to allow equivalence comparison using the `==` and `!=` operators. By default, Python compares objects by identity (whether they are the same object in memory), not by their attribute values.
Part of PrimeIntellect/Terminal-Lego-15k.