Assignment to slice
James Henderson
james at logicalprogression.net
Thu Jan 22 05:35:07 EST 2004
On Thursday 22 January 2004 4:54 am, r.e.s. wrote:
> "James Henderson" <james at logicalprogression.net> wrote ...
>
> JH Assignment to x[-4:-3] is not same as assignment to x[-1:0]:
Since this wasn't made clear in r.e.s.'s post I'd just like to point out that
the above obervation was in response to the proposal that a negative index
"i" was simply a shorthand for "i + len(x)". (len(x) was 3.)
James
--
James Henderson, Logical Progression Ltd.
http://www.logicalprogression.net/
http://sourceforge.net/projects/mailmanager/
More information about the Python-list
mailing list