[issue2354] cmp argument to list.sort()/sorted() should raise a Py3K warning
Changes by Raymond Hettinger [EMAIL PROTECTED]: -- status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2354 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2354] cmp argument to list.sort()/sorted() should raise a Py3K warning
Jeff Balogh [EMAIL PROTECTED] added the comment: Fixing the compare to raise the warning when cmp != NULL, and adding a test -- keywords: +patch nosy: +jeff.balogh Added file: http://bugs.python.org/file9769/sort-cmp.diff __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2354 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2354] cmp argument to list.sort()/sorted() should raise a Py3K warning
Raymond Hettinger [EMAIL PROTECTED] added the comment: Doh! Fixed in r61632 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2354 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2354] cmp argument to list.sort()/sorted() should raise a Py3K warning
Raymond Hettinger [EMAIL PROTECTED] added the comment: Collin, is there some place where I should write-up how to transition sort cmp functions? Often, it is straight-forward to write a simpler key function, but sometimes it isn't obvious how to proceed (i.e. cases that have an ascending primary key and descentding secondary key or cases where a user supplied cmp function is an unchangable, exposed part of the API). I would like to issue some guidance on the subject. -- assignee: rhettinger - collinwinter nosy: +collinwinter status: closed - open __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2354 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2354] cmp argument to list.sort()/sorted() should raise a Py3K warning
Collin Winter [EMAIL PROTECTED] added the comment: There's currently no central repository that I know of. We should have an informational PEP on the subject; would you like to start one with sort/sorted keys as the seed? I've got some notes I can contribute, and I'd like to milk Guido for his experience with str/bytes porting. -- assignee: collinwinter - rhettinger __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2354 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2354] cmp argument to list.sort()/sorted() should raise a Py3K warning
Raymond Hettinger [EMAIL PROTECTED] added the comment: Checked-in r61576 -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2354 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2354] cmp argument to list.sort()/sorted() should raise a Py3K warning
New submission from Brett Cannon [EMAIL PROTECTED]: The cmp argument for list.sort() and sorted() should raise a Py3K warning. -- keywords: 26backport messages: 63725 nosy: brett.cannon priority: immediate severity: normal status: open title: cmp argument to list.sort()/sorted() should raise a Py3K warning __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2354 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2354] cmp argument to list.sort()/sorted() should raise a Py3K warning
Raymond Hettinger [EMAIL PROTECTED] added the comment: I've got this one. -- assignee: - rhettinger nosy: +rhettinger __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2354 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2354] cmp argument to list.sort()/sorted() should raise a Py3K warning
Changes by Brett Cannon [EMAIL PROTECTED]: -- priority: immediate - urgent versions: +Python 2.6 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2354 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com