Changes between Initial Version and Version 1 of Ticket #5761
- 10/19/2007 10:38:53 AM (9 years ago)
- Property Patch needs improvement unset
- Property Needs tests unset
Use random.sample, don't reimplement it
- Property Needs documentation unset
- Property Has patch set
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.