mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Explicitly raise an exception in __cmp__ -- this clarifies that cmp()
is not supported on sets. (Unfortunately, sorting a list of sets may still return random results because it uses < exclusively, but for sets that inly implements a partial ordering. Oh well.)
This commit is contained in:
parent
8bb90a59a6
commit
50e92235e7
2 changed files with 9 additions and 0 deletions
|
@ -78,6 +78,10 @@ Extension modules
|
|||
Library
|
||||
-------
|
||||
|
||||
- The sets module now raises TypeError in __cmp__, to clarify that
|
||||
sets are not intended to be three-way-compared; the comparison
|
||||
operators are overloaded as subset/superset tests.
|
||||
|
||||
- Bastion.py and rexec.py are disabled. These modules are not safe in
|
||||
Python 2.2. or 2.3.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue