Sorting by item_in_another_list

Delaney, Timothy (Tim) tdelaney at avaya.com
Tue Oct 24 17:31:55 EDT 2006


Carsten Haese wrote:

> The current documentation states that "Starting with Python 2.3, the
> sort() method is guaranteed to be stable." However, it's not clear
> whether this specifies language behavior that all implementations must
> adhere to, or whether it simply documents an implementation detail of
> CPython.

This is a requirement for all implementations claiming to be 2.3 or
higher.

The "key" parameter was only introduced in 2.4 ...

Tim Delaney



More information about the Python-list mailing list