This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients NeilGirdhar, martin.panter, r.david.murray
Date 2016-08-19.15:19:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1471619957.8.0.0746467616704.issue27802@psf.upfronthosting.co.za>
In-reply-to
Content
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
2016-08-19 15:19:17r.david.murraysetrecipients: + r.david.murray, martin.panter, NeilGirdhar
2016-08-19 15:19:17r.david.murraysetmessageid: <1471619957.8.0.0746467616704.issue27802@psf.upfronthosting.co.za>
2016-08-19 15:19:17r.david.murraylinkissue27802 messages
2016-08-19 15:19:17r.david.murraycreate