[issue3829] Tuple comparison masking exception
Raymond Hettinger
report at bugs.python.org
Sat Apr 25 01:48:50 CEST 2009
Raymond Hettinger <rhettinger at users.sourceforge.net> added the comment:
Daniel, you're basically on the money. No exception is getting masked.
The rich comparison operations for sets are defined as subset/superset
operations. So, those operations are not useful for total orderings
used by min/max/sorted/bisect/heapq/cmp and tuple comparisons. We can't
stop those tools from calling the rich comparisons but we can and do
raise a TypeError when cmp() is called directly on two sets.
----------
resolution: -> invalid
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3829>
_______________________________________
More information about the Python-bugs-list
mailing list