How Python works: What do you know about support for negativeindices?

Mark Tolonen metolone+gmane at
Fri Sep 10 07:37:14 CEST 2010

"Ben Finney" <ben+python at> wrote in message 
news:874ody9w3v.fsf at
> Raymond Hettinger <python at> writes:
>> It doesn't seem to be common knowledge when and how a[x] gets
>> translated to a[x+len(x)].  So, here's a short info post on how Python
>> supports negative indices for sequences.
> Thanks for this. Could you post your messages using a channel that
> doesn't arbitrarily split your paragraphs into long-short-long-short
> lines? It makes paragraphs burdensome to read, and I skipped most of the
> message because of that.
> I encourage anyone whose messages are munged like that to seek
> correction from their mail service provider, and switch to a different
> one until it's fixed.
> -- 
> \     “Oh, I realize it's a penny here and a penny there, but look at |
>  `\      me: I've worked myself up from nothing to a state of extreme |
> _o__)                                          poverty.” —Groucho Marx |
> Ben Finney
> -- 

It came across fine for me (on much maligned Outlook Express, no less).


More information about the Python-list mailing list