Opened 17 years ago
Closed 17 years ago
#8480 closed (fixed)
Minor error in Database Api document reverse() function explanation seq[:-5] should be seq[-5:]
| Reported by: | pierreR | Owned by: | nobody |
|---|---|---|---|
| Component: | Documentation | Version: | |
| Severity: | Keywords: | reverse | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
In Database Api document (http://www.djangoproject.com/documentation/db-api/):
"reverse()
New in Django development version
Use the reverse()......
seq[:-5], would see the fifth-last item first...."
seq[:-5] should be seq[-5:]
Attachments (1)
Change History (4)
comment:1 by , 17 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
by , 17 years ago
| Attachment: | 8440.typo.diff added |
|---|
comment:2 by , 17 years ago
Hmmmm... well, in this case it might just be as easy for the committers to modify the file themselves, so forget about what I just said ;)
Note:
See TracTickets
for help on using tickets.
Thanks for the report. In the future, when you spot such a trivial bug/typo, please submit a patch as well, as it is much quicker for the core devs to check it in ;)