summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2003-01-14 16:45:04 (GMT)
committerGuido van Rossum <guido@python.org>2003-01-14 16:45:04 (GMT)
commit50e92235e7fc7151f591f76b73fb539e34593405 (patch)
treee1c2d1d60af81a1883735afe670e760b87e7a7a6 /Misc
parent8bb90a59a641979385f063249143a05a6198725e (diff)
downloadcpython-50e92235e7fc7151f591f76b73fb539e34593405.zip
cpython-50e92235e7fc7151f591f76b73fb539e34593405.tar.gz
cpython-50e92235e7fc7151f591f76b73fb539e34593405.tar.bz2
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.)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 5f415d4..29411ec 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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.