<div class="gmail_quote">On Wed, Sep 29, 2010 at 11:29 PM, Terry Reedy <span dir="ltr">&lt;<a href="mailto:tjreedy@udel.edu">tjreedy@udel.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">Does this violate the Sequence ABC (assuming there is one)?</div></blockquote><div><br></div><div>There is a Sequence ABC, but it does not define __add__.  It only defines the following methods:<br>__contains__, __getitem__, __iter__, __len__, __reversed__, count, and index</div>
<div><br></div><div>tuple, range, and str types  all register as following the Sequence ABC.</div><div>list and bytearray types register as following the MutableSequence ABC, which is a subclass of the Sequence ABC.</div>
<div><br>-- <br>Daniel Stutzbach, Ph.D.<br>
President, <a href="http://stutzbachenterprises.com/" target="_blank">Stutzbach Enterprises, LLC</a><br>
<br>
</div></div>