Open AustinScola opened 3 years ago
Here is a great article about metaclasses.
A metaclass seems like it would not be the way to go here. A metaclass is a way of changing the instantiation behavior of a class and that isn't really what it is needed here. Plus, most people don't have knowledge of them and so it would probably serve to confuse users.
Make a mix for a "standard" equality operator which checks the type and instance attributes. Or maybe this should be a metaclass? I don't actually know what metaclasses are so I should do some research.