Code

Changes between Initial Version and Version 1 of Ticket #5761


Ignore:
Timestamp:
10/19/07 08:38:53 (7 years ago)
Author:
mboersma
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 Patch needs improvement unset
    • Property Component changed from Uncategorized to Contrib apps
    • Property Needs tests unset
    • Property Summary changed from Minor refactoring to Use random.sample, don't reimplement it
    • Property Version changed from 0.96 to SVN
    • Property Needs documentation unset
    • Property Has patch set
    • Property Triage Stage changed from Unreviewed to Accepted
  • 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.