Changes between Initial Version and Version 1 of Ticket #5761


Ignore:
Timestamp:
Oct 19, 2007, 10:38:53 AM (17 years ago)
Author:
Matt Boersma
Comment:

I changed the title and description to be clearer, and updated it to Django-SVN, since 0.96 won't get patched for this, and it's still there in trunk.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5761

    • Property Component UncategorizedContrib apps
    • Property Has patch set
    • Property Triage Stage UnreviewedAccepted
    • Property Summary Minor refactoringUse random.sample, don't reimplement it
    • Property Version 0.96SVN
  • Ticket #5761 – Description

    initial v1  
    1 Use random.sample instead of re-implementing it :-)
     1Python's standard library since 2.3 has had random.sample for choosing random elements of a sequence.  In contrib/auth/models.py, the implementor was unaware of this and wrote a bit more code than needed.
Back to Top