$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r54675 - sandbox-branches/bhy/py3k/libs/python/test
From: divinekid_at_[hidden]
Date: 2009-07-05 12:48:16
Author: bhy
Date: 2009-07-05 12:48:15 EDT (Sun, 05 Jul 2009)
New Revision: 54675
URL: http://svn.boost.org/trac/boost/changeset/54675
Log:
fix list sorting in py3k
Text files modified: 
   sandbox-branches/bhy/py3k/libs/python/test/list.cpp |     1 +                                       
   sandbox-branches/bhy/py3k/libs/python/test/list.py  |     4 ++--                                    
   2 files changed, 3 insertions(+), 2 deletions(-)
Modified: sandbox-branches/bhy/py3k/libs/python/test/list.cpp
==============================================================================
--- sandbox-branches/bhy/py3k/libs/python/test/list.cpp	(original)
+++ sandbox-branches/bhy/py3k/libs/python/test/list.cpp	2009-07-05 12:48:15 EDT (Sun, 05 Jul 2009)
@@ -109,6 +109,7 @@
 
     print("sorted:");
     x.pop(2); // make sorting predictable
+    x.pop(2); // remove [1,2] so the list is sortable in py3k
     x.sort();
     print(x);
 
Modified: sandbox-branches/bhy/py3k/libs/python/test/list.py
==============================================================================
--- sandbox-branches/bhy/py3k/libs/python/test/list.py	(original)
+++ sandbox-branches/bhy/py3k/libs/python/test/list.py	2009-07-05 12:48:15 EDT (Sun, 05 Jul 2009)
@@ -97,9 +97,9 @@
 reversing...
 ['y', 'x', X(3), [1, 2], '.', 'o', 'l', 'l', 'e', 'h']
 sorted:
-[[1, 2], '.', 'e', 'h', 'l', 'l', 'o', 'x', 'y']
+['.', 'e', 'h', 'l', 'l', 'o', 'x', 'y']
 reverse sorted:
-['y', 'x', 'o', 'l', 'l', 'h', 'e', '.', [1, 2]]
+['y', 'x', 'o', 'l', 'l', 'h', 'e', '.']
 '''
 
 def run(args = None):