#8480: Minor error in Database Api document reverse() function explanation seq[:-5] should be seq[-5:] ---------------------------+------------------------------------------------ Reporter: pierreR | Owner: nobody Status: new | Milestone: Component: Documentation | Version: Keywords: reverse | Stage: Unreviewed Has_patch: 0 | ---------------------------+------------------------------------------------ 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:] -- Ticket URL: <http://code.djangoproject.com/ticket/8480> Django Code <http://code.djangoproject.com/> The web framework for perfectionists with deadlines --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-updates?hl=en -~----------~----~----~----~------~----~------~--~---
