I was wondering the same thing recently, thanks for opening this issue. Here is my use case: I'm implementing a PersistentList, and I want it to be equal to a 'real' list, but not equal to a tuple. Frankly, I hadn't thought about the latter problem before this issue, so my __eq__ code in my concrete class is currently broken. I'll need to explicitly check for list subclasses and PersistentList subclasses. I'm not sure there's any way to "generalize" that. I presume that's why Sequence doesn't have the methods. The answer would seem to be to have explicit 'List' and 'Tuple' abcs.
History
Date
User
Action
Args
2022-04-11 14:58:35
admin
set
github: 71989
2016-08-19 18:31:18
gvanrossum
set
status: open -> closedresolution: rejectedstage: resolved