Brett Cannon <[EMAIL PROTECTED]> added the comment: On Sun, Dec 7, 2008 at 13:26, Mark Dickinson <[EMAIL PROTECTED]> wrote: > > Mark Dickinson <[EMAIL PROTECTED]> added the comment: > > About unittest: > > unittest.TestLoader has an attribute "sortTestMethodsUsing", which it > expects to be an old-style comparison. > > Should this attribute be updated (and renamed?) to expect a key function > instead, or left as is? >
It will break backwards-compatibility if you change it. Possibly the best solution is to introduce a new attribute that does either key or just lt comparison and make sortTestMethodsUsing be a descriptor that wraps the function as needed. _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1717> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com