R. David Murray added the comment:

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.

----------
nosy: +r.david.murray

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27802>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to