Bugs item #1559818, was opened at 2006-09-16 18:46 Message generated for change (Comment added) made by qrczak You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1559818&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Closed >Resolution: Invalid Priority: 5 Submitted By: Marcin 'Qrczak' Kowalczyk (qrczak) Assigned to: Nobody/Anonymous (nobody) Summary: list.sort does nothing when both cmp and key are given Initial Comment: Python 2.5c1 (r25c1:51305, Sep 3 2006, 12:19:21) [GCC 4.2.0 20060806 (experimental) (PLD-Linux)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> x = [1, 200, 30] >>> x.sort(lambda x, y: x<y, str) >>> x [1, 200, 30] ---------------------------------------------------------------------- >Comment By: Marcin 'Qrczak' Kowalczyk (qrczak) Date: 2006-09-16 18:50 Message: Logged In: YES user_id=50234 Oops, sorry, I forgot that cmp is a three-way comparison. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1559818&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com