File: //usr/local/ssl/local/ssl/lib/python2.4/test/test_compare.pyc
mò
‚=5Dc @ s d k Z d f d „ ƒ YZ d f d „ ƒ YZ d f d „ ƒ YZ d d d d d
d g d d e ƒ e d ƒ e d ƒ g
Z d
„ Z e ƒ d S( Nt Emptyc B s t Z d „ Z RS( Nc C s d S( Ns <Empty>( ( t self( ( t' /usr/lib/python2.4/test/test_compare.pyt __repr__ s ( t __name__t
__module__R ( ( ( R R s t Coercec B s# t Z d „ Z d „ Z d „ Z RS( Nc C s
| | _ d S( N( t argR ( R R ( ( R t __init__ s c C s d | i S( Ns <Coerce %s>( R R ( R ( ( R R s c C s5 t | t ƒ o | i | i f Sn | i | f Sd S( N( t
isinstancet otherR R R ( R R
( ( R t
__coerce__ s ( R R R R R ( ( ( R R s t Cmpc B s# t Z d „ Z d „ Z d „ Z RS( Nc C s
| | _ d S( N( R R ( R R ( ( R R s c C s d | i S( Ns <Cmp %s>( R R ( R ( ( R R s c C s t | i | ƒ S( N( t cmpR R R
( R R
( ( R t __cmp__ s ( R R R R R ( ( ( R R s i f2.0l x0.00.0i i c C sO x~ t D]v } xm t D]e } y | | j } Wn# d | | t i ƒ d f GHq X| o d | | f GHq d | | f GHq Wq Wg } x1 t d ƒ D]# } | i t
| ƒ d t ƒ ƒ q” Wx | D]… } x| | D]t } t | | ƒ t t
| ƒ t
| ƒ ƒ j oC d Gt | | ƒ Gt t
| ƒ t
| ƒ ƒ Gt
| ƒ Gt
| ƒ GHqÏ qÏ Wq Wd S( Ns cmp(%s, %s) => %si s %s == %ss %s != %si
i s ERROR:( t
candidatest at bt xt syst exc_infot Lt ranget it insertt lenR R
t id( R R R R R ( ( R t test! s*
! +( i ( R R R R t NoneR R ( R R R R R R ( ( R t ? s
: