Issue 1515932: 2.3.6.4 Mutable Sequence Types clarification (original) (raw)
Issue1515932
Created on 2006-07-02 17:53 by aisaac0, last changed 2022-04-11 14:56 by admin. This issue is now closed.
Messages (2) | ||
---|---|---|
msg29012 - (view) | Author: Alan (aisaac0) | Date: 2006-07-02 17:53 |
Documentation of Mutable Sequence Types at http://docs.python.org/lib/typesseq-mutable.html has the following language: s[i:j] = t slice of s from i to j is replaced by t ... s[i:j:k] = t the elements of s[i:j:k] are replaced by those of t (1) The asymmetry is misleading (e.g., one might think that in the first case t could be a single number that would be assigned to all the elements, particularly since the footnote is omitted). Therefore I propose the first case become: s[i:j] = t the elements of the slice of s from i to j are replaced by those of t (1) The following alternative would be even more parallel and also acceptable: s[i:j] = t the elements of s[i:j] are replaced by those of t (1) | ||
msg29013 - (view) | Author: A.M. Kuchling (akuchling) * ![]() |
Date: 2006-07-03 14:08 |
Logged In: YES user_id=11375 In rev.47219, I've replaced the first case with "slice of \var{s} from \var{i} to \var{j} is replaced by the contents of the iterable \var{t}". Thanks for your comment. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:56:18 | admin | set | github: 43597 |
2006-07-02 17:53:19 | aisaac0 | create |