Changes between Initial Version and Version 1 of Ticket #5761
- 10/19/07 10:38:53 (9 years ago)
Use random.sample, don't reimplement it
- Property Has patch set
- Property Component changed from
initial v1 1 Use random.sample instead of re-implementing it :-) 1 Python'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.