"Fredrik Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [slice] indices point to the "gap" between items, not to the items > themselves. > > positive indices start from the left end, negative indices from the > righept end. > > straight indexing returns the item just to the right of the given gap > (this is > what gives you the perceived assymmetry), slices return all items between > the given gaps.
Well said. In some languages, straight indexing returns the item to the left instead. The different between items and gaps in seen in old terminals and older screens versus modern gui screens. Then, a cursur sat on top of or under a character space. Now, a cursur sits between chars. Terry J. Reedy -- http://mail.python.org/mailman/listinfo/python-list