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

Giacomo Boffi giacomo.boffi at polimi.it
Fri Sep 10 05:44:32 EDT 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?

hi Ben, i see that you uses gnus... well, it's gnus that does the
unwanted formatting
try C-u g, as dettailed below, ciao
g runs `gnus-summary-show-article'
`gnus-summary-show-article' is an interactive compiled Lisp function
 -- loaded from "gnus-sum"
(gnus-summary-show-article &optional ARG)
Documentation:
Force redisplaying of the current article.
If ARG (the prefix) is a number, show the article with the charset
defined in `gnus-summary-show-article-charset-alist', or the charset
input.
If ARG (the prefix) is non-nil and not a number, show the raw article
without any article massaging functions being run. Normally, the key
strokes are `C-u g'.
-- 
la lenza penzola
 -- PMF, in IHC


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /