I want to derive a class from list
, add a few instance attributes to it, and make it hashable. What is a good (fast and neat) way to do it?
UPDATE:
I deleted a lengthy explanation of a use case. I also moved a related but separate issue into a different question.