[Tutor] Decision matrix

Erik Price eprice@ptc.com
Thu Feb 13 13:54:18 2003


Jeff Shannon wrote:

> The string sequence is used for strings. ;)  Strings are a sequence all 
> on their own, which is why you can do things like:
> 
>  >>> for char in "I am a string!":
> ...     print char, ord(char)

Oh.  So then, it's similar to an interface or protocol?  As in, you can 
perform X with a sequence, and of course the implementation of the 
sequence will do the work of figuring out how to handle the situation? 
(I started a concurrent thread on this very topic earlier today.)



Erik