]> granicus.if.org Git - python/commit
Explicitly raise an exception in __cmp__ -- this clarifies that cmp()
authorGuido van Rossum <guido@python.org>
Tue, 14 Jan 2003 16:45:04 +0000 (16:45 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 14 Jan 2003 16:45:04 +0000 (16:45 +0000)
commit50e92235e7fc7151f591f76b73fb539e34593405
treee1c2d1d60af81a1883735afe670e760b87e7a7a6
parent8bb90a59a641979385f063249143a05a6198725e
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.)
Lib/sets.py
Misc/NEWS