How Python works: What do you know about support for negative indices?
ben+python at benfinney.id.au
Sat Sep 11 03:17:16 CEST 2010
Ben Finney <ben+python at benfinney.id.au> writes:
> Raymond Hettinger <python at rcn.com> 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.
For those who think the problem may be with the recipient's software, I
see the same annoying line-wrapping problems in the archived message
There's been enough sidetracking of Raymond's thread, though, so that
factual contribution will hopefully be my last in this thread on this
\ “Choose mnemonic identifiers. If you can't remember what |
`\ mnemonic means, you've got a problem.” —Larry Wall |
More information about the Python-list