mς
­fIc           @   s8  d  GHd GHd GHd f  d     YZ  h  Z e    Z e    Z d e e <d e e <d GHh  Z x e d  D] Z e e e <qf Wx e d  D] Z e e =q Wx! e d d	  D] Z e e e <q¨ Wd
 e f d     YZ h  Z e Z	 d e e   <d e e   <d e e   <d e e   <d e e   <e
 Z	 d e d	 <d GHd S(   s   3. Operationss   XXX Mostly not yet implementedsD   3.1 Dictionary lookups succeed even if __cmp__() raises an exceptiont
   BadDictKeyc           B   s    t  Z d Z d   Z d   Z RS(   Ni    c         C   s   t  |  i  S(   N(   t   hasht   selft	   __class__(   R   (    (    t1   /mit/python/lib/python2.4/test/test_operations.pyt   __hash__   s    c         C   s@   t  | |  i  o) t i p d t _ d GHn t d  n | S(   Ni   s   raising errort   gotcha(   t
   isinstancet   otherR   R   R    t   already_printed_raising_errort   RuntimeError(   R   R   (    (    R   t   __cmp__   s    
		(   t   __name__t
   __module__R	   R   R   (    (    (    R   R    
   s   	i   i   s   No exception passed through.i   i	   t   Xc           B   s   t  Z d   Z d   Z RS(   Nc         C   s   d S(   Ni   (    (   R   (    (    R   R   8   s    c         C   s   t  o t i   n t S(   N(   t   resizingt   dt   cleart   False(   R   R   (    (    R   t   __eq__:   s    (   R   R   R   R   (    (    (    R   R   7   s   	i   i   i   s   resize bugs not triggered.N(   R    R   t   x1t   x2t   ranget   it   objectR   R   R   t   True(   R    R   R   R   R   R   R   (    (    R   t   ?   s<   		

	   
