[Python-Dev] API for binary operations on Sets (original) (raw)
Daniel Stutzbach daniel at stutzbachenterprises.com
Thu Sep 30 13:33:59 CEST 2010
- Previous message: [Python-Dev] API for binary operations on Sets
- Next message: [Python-Dev] API for binary operations on Sets
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Wed, Sep 29, 2010 at 11:29 PM, Terry Reedy <tjreedy at udel.edu> wrote:
Does this violate the Sequence ABC (assuming there is one)?
There is a Sequence ABC, but it does not define add. It only defines the following methods: contains, getitem, iter, len, reversed, count, and index
tuple, range, and str types all register as following the Sequence ABC. list and bytearray types register as following the MutableSequence ABC, which is a subclass of the Sequence ABC.
-- Daniel Stutzbach, Ph.D. President, Stutzbach Enterprises, LLC <http://stutzbachenterprises.com/> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20100930/38b22ad1/attachment.html>
- Previous message: [Python-Dev] API for binary operations on Sets
- Next message: [Python-Dev] API for binary operations on Sets
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]