[issue3829] Tuple comparison masking exception

2009-04-24 Thread Raymond Hettinger
Raymond Hettinger 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 tu

[issue3829] Tuple comparison masking exception

2009-03-29 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: I don't think the compare is actually masking an exception. The set type defines a tp_richcompare routine that gets called when comparing them as members of a tuple, but the set type also defines a tp_compare routine that does nothing but raise an exception.

[issue3829] Tuple comparison masking exception

2008-09-15 Thread Gary Poster
Changes by Gary Poster <[EMAIL PROTECTED]>: -- nosy: +gary ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-list mailing list

[issue3829] Tuple comparison masking exception

2008-09-10 Thread Fred L. Drake, Jr.
New submission from Fred L. Drake, Jr. <[EMAIL PROTECTED]>: There's a strange condition where cmp() of tuples of unorderable values returns -1 even though using the unorderable values raises an exception. If I have these two unorderable values, cmp() raises an expected exception: >>> s0 = fro