mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Allow list sort's comparison function to explicitly be None. See SF patch
661092.
This commit is contained in:
parent
fe8496ca03
commit
4abd5f0fce
4 changed files with 34 additions and 6 deletions
|
@ -12,6 +12,10 @@ What's New in Python 2.3 alpha 2?
|
|||
Core and builtins
|
||||
-----------------
|
||||
|
||||
- List objects' sort() method now accepts None as the comparison function.
|
||||
Passing None is semantically identical to calling sort() with no
|
||||
arguments.
|
||||
|
||||
Extension modules
|
||||
-----------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue