Rob Williscroft wrote:

> import sys
> 
> live = 'live'
> 
> print live[ sys.maxint  :              : -1 ]
> print live[ len(live)-1 :              : -1 ]
> 
> print live[ len(live)-1 : -len(live)-1 : -1 ]
> print live[ len(live)-1 : -sys.maxint  : -1 ]
> print live[ sys.maxint  : -sys.maxint  : -1 ]
> print live[ -1          : -len(live)-1 : -1 ]
> 
> Of course there is only one obvious way to do it, but alas
> as I'm not Dutch I can't tell which it is.

Well, that part's easy at least:

   live[::-1]

:-)  And so the circle is complete ...

-- 
Robert Kern
[EMAIL PROTECTED]

"In the fields of hell where the grass grows high
  Are the graves of dreams allowed to die."
   -- Richard Harter

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to