[issue2354] cmp argument to list.sort()/sorted() should raise a Py3K warning

2008-03-24 Thread Raymond Hettinger

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

2008-03-19 Thread Jeff Balogh

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

2008-03-19 Thread Raymond Hettinger

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

2008-03-19 Thread Raymond Hettinger

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

2008-03-19 Thread Collin Winter

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

2008-03-18 Thread Raymond Hettinger

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

2008-03-17 Thread Brett Cannon

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

2008-03-17 Thread Raymond Hettinger

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

2008-03-17 Thread Brett Cannon

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