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 mjpieters
Recipients docs@python, joncle, mjpieters
Date 2015-04-04.11:04:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1428145493.4.0.271488472983.issue23864@psf.upfronthosting.co.za>
In-reply-to
Content
I should have added the mixin methods for the Sequence implementation; the more complete demonstration is:

>>> from collections.abc import Sequence, Container, Sized
>>> class MySequence(object):
...     def __contains__(self, item): pass
...     def __len__(self): pass
...     def __iter__(self): pass
...     def __getitem__(self, index): pass
...     def __len__(self): pass
...     def __reversed__(self): pass
...     def index(self, item): pass
...     def count(self, item): pass
... 
>>> issubclass(MySequence, Container)
True
>>> issubclass(MySequence, Sized)
True
>>> issubclass(MySequence, Sequence)
False
History
Date User Action Args
2015-04-04 11:04:53mjpieterssetrecipients: + mjpieters, joncle, docs@python
2015-04-04 11:04:53mjpieterssetmessageid: <1428145493.4.0.271488472983.issue23864@psf.upfronthosting.co.za>
2015-04-04 11:04:53mjpieterslinkissue23864 messages
2015-04-04 11:04:53mjpieterscreate