Issue 1201: Error in array concept (original) (raw)
Issue1201
Created on 2007-09-25 08:27 by zip, last changed 2022-04-11 14:56 by admin. This issue is now closed.
| Messages (2) | ||
|---|---|---|
| msg56129 - (view) | Author: zip (zip) | Date: 2007-09-25 08:26 |
| http://docs.python.org/tut/node5.html The best way to remember how slices work is to think of the indices as pointing between characters, with the left edge of the first character numbered 0. Then the right edge of the last character of a string of n characters has index n, for example: -- This is not possible because counting starts from 0 so the last charater must be n-1. | ||
| msg56131 - (view) | Author: Alan McIntyre (alanmcintyre) * ![]() |
Date: 2007-09-25 12:53 |
| The last character is n-1, but the section you quote says the *right edge* of the last character (not the last character itself) has index n; this seems correct in the context of the mnemonic scheme. |
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:56:27 | admin | set | github: 45542 |
| 2007-09-25 17:30:40 | gvanrossum | set | status: open -> closedresolution: not a bug |
| 2007-09-25 12:53:06 | alanmcintyre | set | nosy: + alanmcintyremessages: + |
| 2007-09-25 08:27:00 | zip | create |
