Raymond Hettinger <python <at> rcn.com> writes:
> 
> By subclassing Sequence, we get index() and count() mixins for free.
> 

It seems to me that Sequence.index()/count() and String.index()/count() 
shouldn't have the same semantics.
In the former case they search for items in the Sequence, in the latter case 
they search for substrings of the String.



_______________________________________________
Python-Dev mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to