[Python-checkins] cpython (2.7): Add line explaining the "%sort" test.

tim.peters python-checkins at python.org
Fri Aug 23 01:43:32 CEST 2013


http://hg.python.org/cpython/rev/1ea833ecaf5a
changeset:   85331:1ea833ecaf5a
branch:      2.7
parent:      85328:06244031b608
user:        Tim Peters <tim at python.org>
date:        Thu Aug 22 18:32:53 2013 -0500
summary:
  Add line explaining the "%sort" test.

files:
  Objects/listsort.txt |  1 +
  1 files changed, 1 insertions(+), 0 deletions(-)


diff --git a/Objects/listsort.txt b/Objects/listsort.txt
--- a/Objects/listsort.txt
+++ b/Objects/listsort.txt
@@ -60,6 +60,7 @@
       /sort: ascending data
       3sort: ascending, then 3 random exchanges
       +sort: ascending, then 10 random at the end
+      %sort: ascending, then randomly replace 1% of elements w/ random values
       ~sort: many duplicates
       =sort: all equal
       !sort: worst case scenario

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list