[Tutor] (no subject)

Kent Johnson kent37 at tds.net
Thu Apr 14 19:00:15 CEST 2005


Jim and Laura Ahl wrote:
>  >>> 'my test string'[-1:-4:-1]
> 'gni'
>  >>>
> When I do this it tells me that the sequence index must be an integer.  
> What is that telling me and how do I fix that? Jim

It's telling you that it doesn't support "extended slicing" - indexes with three components. Upgrade 
to Python 2.3 or later to make it work.

Kent



More information about the Tutor mailing list