Lawrence D'Oliveiro  <[EMAIL PROTECTED]> wrote:
>In message <[EMAIL PROTECTED]>, Antoon Pardon wrote:
>> I need this Top value in
>> a context where it can be used as a start or stop value
>> in a slice.
>But the only valid values allowed for indices are 0

>>> range(5)[:-1]
[0, 1, 2, 3]

>  up to the length of the
>array inclusive. Larger integers are not allowed, [ ... ]

>>> range(5)[:sys.maxint]
[0, 1, 2, 3, 4]

-- 
\S -- [EMAIL PROTECTED] -- http://www.chaos.org.uk/~sion/
  ___  |  "Frankly I have no feelings towards penguins one way or the other"
  \X/  |    -- Arthur C. Clarke
   her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to