1 # Python test set -- part 3, built-in operations.
5 print 'XXX Mostly not yet implemented'
8 print '3.1 Dictionary lookups succeed even if __cmp__() raises an exception'
10 # SourceForge bug #112558:
11 # http://sourceforge.net/bugs/?func=detailbug&bug_id=112558&group_id=5470
15 return hash(self
.__class
__)
17 def __cmp__(self
, other
):
18 if isinstance(other
, self
.__class
__):
20 raise RuntimeError, "gotcha"
28 print "No exception passed through."