Opened 7 years ago

Closed 7 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: UI/UX:

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)

8440.typo.diff (715 bytes) - added by julien 7 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 7 years ago by julien

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

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 ;)

Changed 7 years ago by julien

comment:2 Changed 7 years ago by julien

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 ;)

comment:3 Changed 7 years ago by simon

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in [9005]

Note: See TracTickets for help on using tickets.
Back to Top